Struct RSplitNMut
#[must_use = "iterators are lazy and do nothing unless consumed"]
pub struct RSplitNMut<'a, T: 'a, P>
where
P: FnMut(&T) -> bool, { pub(in ::slice::iter) inner: GenericSplitN<RSplitMut<'a, T, P>> }
An iterator over subslices separated by elements that match a predicate function, limited to a given number of splits, starting from the end of the slice.
This struct is created by the rsplitn_mut method on slices.
Example
let mut slice = ;
let iter = slice.rsplitn_mut;
Fields
inner: GenericSplitN<RSplitMut<'a, T, P>>
Implementations
impl<'a, T: 'a, P: FnMut(&T) -> bool> RSplitNMut<'a, T, P>
fn new(s: RSplitMut<'a, T, P>, n: usize) -> Self
Trait Implementations
impl<'a, T, P> FusedIterator for RSplitNMut<'a, T, P>
where
P: FnMut(&T) -> bool,
impl<'a, T, P> Iterator for RSplitNMut<'a, T, P>
where
P: FnMut(&T) -> bool,
type Item = &'a mut [T];fn next(&mut self) -> Option<&'a mut [T]>fn size_hint(&self) -> (usize, Option<usize>)
impl<T: Debug, P> Debug for RSplitNMut<'_, T, P>
where
P: FnMut(&T) -> bool,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<'a, T, P> !UnwindSafe for RSplitNMut<'a, T, P>
impl<'a, T, P> Freeze for RSplitNMut<'a, T, P>
where
GenericSplitN<RSplitMut<'a, T, P>>: Freeze,
impl<'a, T, P> RefUnwindSafe for RSplitNMut<'a, T, P>
where
GenericSplitN<RSplitMut<'a, T, P>>: RefUnwindSafe,
impl<'a, T, P> Send for RSplitNMut<'a, T, P>
where
GenericSplitN<RSplitMut<'a, T, P>>: Send,
impl<'a, T, P> Sync for RSplitNMut<'a, T, P>
where
GenericSplitN<RSplitMut<'a, T, P>>: Sync,
impl<'a, T, P> Unpin for RSplitNMut<'a, T, P>
where
GenericSplitN<RSplitMut<'a, T, P>>: Unpin,
impl<'a, T, P> UnsafeUnpin for RSplitNMut<'a, T, P>
where
GenericSplitN<RSplitMut<'a, T, P>>: UnsafeUnpin,
Blanket Implementations
impl<I> IntoIterator for RSplitNMut<'a, T, P>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for RSplitNMut<'a, T, P>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RSplitNMut<'a, T, P>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RSplitNMut<'a, T, P>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for RSplitNMut<'a, T, P>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for RSplitNMut<'a, T, P>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for RSplitNMut<'a, T, P>
impl<T, U> Into<U> for RSplitNMut<'a, T, P>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RSplitNMut<'a, T, P>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for RSplitNMut<'a, T, P>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>