Struct Enumerate
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Enumerate<I> { /* private fields */ }
Enumerate is an iterator that returns the current count along with the element.
This struct is created by the enumerate() method on IndexedParallelIterator
Trait Implementations
impl<I> IndexedParallelIterator for Enumerate<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 Enumerate<I>
where
I: IndexedParallelIterator,
type Item = (usize, <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 Enumerate<I>
fn clone(&self) -> Self
impl<I: Debug> Debug for Enumerate<I>
fn fmt(&self, f: &mut Formatter<'_>) -> Result