Struct SplitInclusiveMut

struct SplitInclusiveMut<'a, T: 'a, P> { ... }
where
    P: FnMut(&T) -> bool

An iterator over the mutable subslices of the vector which are separated by elements that match pred. Unlike SplitMut, it contains the matched parts in the ends of the subslices.

This struct is created by the split_inclusive_mut method on slices.

Example

let mut v = [10, 40, 30, 20, 60, 50];
let iter = v.split_inclusive_mut(|num| *num % 3 == 0);

Implementations

impl<'a, T, P> DoubleEndedIterator for SplitInclusiveMut<'a, T, P>

fn next_back(self: &mut Self) -> Option<&'a mut [T]>

impl<'a, T, P> Freeze for SplitInclusiveMut<'a, T, P>

impl<'a, T, P> Iterator for SplitInclusiveMut<'a, T, P>

fn next(self: &mut Self) -> Option<&'a mut [T]>
fn size_hint(self: &Self) -> (usize, Option<usize>)

impl<'a, T, P> RefUnwindSafe for SplitInclusiveMut<'a, T, P>

impl<'a, T, P> Send for SplitInclusiveMut<'a, T, P>

impl<'a, T, P> Sync for SplitInclusiveMut<'a, T, P>

impl<'a, T, P> Unpin for SplitInclusiveMut<'a, T, P>

impl<'a, T, P> UnsafeUnpin for SplitInclusiveMut<'a, T, P>

impl<'a, T, P> UnwindSafe for SplitInclusiveMut<'a, T, P>

impl<I> IntoIterator for SplitInclusiveMut<'a, T, P>

fn into_iter(self: Self) -> I

impl<T> Any for SplitInclusiveMut<'a, T, P>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for SplitInclusiveMut<'a, T, P>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for SplitInclusiveMut<'a, T, P>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for SplitInclusiveMut<'a, T, P>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, P> FusedIterator for SplitInclusiveMut<'_, T, P>

impl<T, U> Into for SplitInclusiveMut<'a, T, P>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for SplitInclusiveMut<'a, T, P>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for SplitInclusiveMut<'a, T, P>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<T: fmt::Debug, P> Debug for SplitInclusiveMut<'_, T, P>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result