Module mutability_errors

Module mutability_errors 

Source

Structsยง

BindingFinder ๐Ÿ”’

Enumsยง

AccessKind ๐Ÿ”’
AmpMutSugg ๐Ÿ”’

Functionsยง

find_assignments ๐Ÿ”’
Finds all statements that assign directly to local (i.e., X = โ€ฆ) and returns their locations.
get_mut_span_in_struct_field ๐Ÿ”’
Given a field that needs to be mutable, returns a span where the โ€œ mut โ€œ could go. This function expects the local to be a reference to a struct in order to produce a span.
is_closure_like ๐Ÿ”’
If the type is a Coroutine, Closure, or CoroutineClosure
mut_borrow_of_mutable_ref ๐Ÿ”’
suggest_ampmut ๐Ÿ”’
suggest_ampmut_self ๐Ÿ”’
suggest_ref_mut ๐Ÿ”’
If possible, suggest replacing ref with ref mut.