[][src]Macro structural::z_unsafe_impl_get_vfield_raw_mut_fn

macro_rules! z_unsafe_impl_get_vfield_raw_mut_fn {
    (
        Self=$Self:ty,
        variant_tstr=$variant_name:ty,
        field_tstr=$field_name:ty,
        field_type=$field_ty:ty,
    ) => { ... };
}

Implements the get_vfield_raw_mut_fn and get_vfield_raw_mut_unchecked_fn methods from the GetVariantFieldMut trait.

Safety

The $Self argument must be the Self type in the impl block.

Example

For an example of using this macro look at the manual implementation example for GetVariantFieldMut