[][src]Macro structural::unsafe_impl_get_field_raw_mut_method

macro_rules! unsafe_impl_get_field_raw_mut_method {
    ( $Self:ident,field_name=$field_name:tt,name_generic=$name_param:ty ) => { ... };
}

For manual implementors of the GetFieldMut trait, implementing the methods used for accession multiple mutable fields.

Safety

This is an unsafe macro, because it requires each invocation of it to borrow a different field for the type (the field_name= argument), otherwise this would cause undefined behavior because it would create multiple mutable borrows to the same field.

Example

For an example where this macro is used, you can look at the manual implementation example of the GetFieldMut trait