Skip to main content

FieldMut

Type Alias FieldMut 

Source
pub type FieldMut<'a, T> = (&'static str, &'a mut T);
Expand description

Named mutable reference to a struct field

The first entry of the tuple represents the name of the field and the second holds a mutable reference to the field.

Returned by NameIndex::fields_mut.