Module mutability_errors

Source

Structsยง

AmpMutSugg ๐Ÿ”’
BindingFinder ๐Ÿ”’

Enumsยง

AccessKind ๐Ÿ”’

Functionsยง

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.