Struct GenericSplitN
pub(in ::slice::iter) struct GenericSplitN<I> { pub(in ::slice::iter) iter: I, pub(in ::slice::iter) count: usize }
An private iterator over subslices separated by elements that match a predicate function, splitting at most a fixed number of times.
Fields
iter: Icount: usize
Trait Implementations
impl<I: Debug> Debug for GenericSplitN<I>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T, I: SplitIter<Item = T>> Iterator for GenericSplitN<I>
type Item = T;fn next(&mut self) -> Option<T>fn size_hint(&self) -> (usize, Option<usize>)
Auto Trait Implementations
impl<I> Freeze for GenericSplitN<I>
where
I: Freeze,
impl<I> RefUnwindSafe for GenericSplitN<I>
where
I: RefUnwindSafe,
impl<I> Send for GenericSplitN<I>
where
I: Send,
impl<I> Sync for GenericSplitN<I>
where
I: Sync,
impl<I> Unpin for GenericSplitN<I>
where
I: Unpin,
impl<I> UnsafeUnpin for GenericSplitN<I>
where
I: UnsafeUnpin,
impl<I> UnwindSafe for GenericSplitN<I>
where
I: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for GenericSplitN<I>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for GenericSplitN<I>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for GenericSplitN<I>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for GenericSplitN<I>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for GenericSplitN<I>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for GenericSplitN<I>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for GenericSplitN<I>
impl<T, U> Into<U> for GenericSplitN<I>
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 GenericSplitN<I>
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 GenericSplitN<I>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>