Struct MaxLen
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct MaxLen<I> { /* private fields */ }
MaxLen is an iterator that imposes a maximum length on iterator splits.
This struct is created by the with_max_len() method on IndexedParallelIterator
Trait Implementations
impl<I> IndexedParallelIterator for MaxLen<I>
where
I: IndexedParallelIterator,
fn drive<C: Consumer<Self::Item>>(self, consumer: C) -> C::Resultfn len(&self) -> usizefn with_producer<CB>(self, callback: CB) -> CB::Output where CB: ProducerCallback<Self::Item>,
impl<I> ParallelIterator for MaxLen<I>
where
I: IndexedParallelIterator,
type Item = <I as ParallelIterator>::Item;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<Self::Item>,fn opt_len(&self) -> Option<usize>
impl<I: Clone> Clone for MaxLen<I>
fn clone(&self) -> Self
impl<I: Debug> Debug for MaxLen<I>
fn fmt(&self, f: &mut Formatter<'_>) -> Result