Derive Macro IteratorsMut

Source
#[derive(IteratorsMut)]
Expand description

A procedural macro fully implementing [IterableByValue] and [IterableByValueFrom] for subslices on top of a the SubsliceImplMut structure generated by the derive macro [SubsliceMut].

The macro defines a structure IterMut that keeps track of a mutable reference to a slice, and of a current position, and that is used to implement IterableByValue on SubsliceImpl.

Note that since IterMut provides iterators by value, it cannot use to mutate the subslice. Moreover, non-mutable subslicing on a SubsliceImplMut will yield a SubsliceImpl.