Derive Macro IteratorsMut

Source
#[derive(IteratorsMut)]
{
    // Attributes available to this derive:
    #[value_traits_iterators_mut]
}
Expand description

A derive macro that implements IterateByValue and IterateByValueFrom for mutable subslices on top of the <YOUR TYPE>SubsliceImplMut structure generated by the derive macro SubslicesMut.

To call this macro, you first need to derive both SubslicesMut and Iterators on the same struct, as this macro uses the <YOUR TYPE>Iter structure defined by Iterators.

ยงAdditional Bounds

Since this macro has no knowledge of the bounds of the generic parameters in the implementations of SliceByValue, SliceByValueSet, and SliceByValueRepl, additional bounds with respect to the type declaration must be specified using the #[value_traits_iterators_mut(bound = "<BOUND>")] attribute. Multiple bounds can be specified with multiple attributes.