Struct Map
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Map<I, F> { /* private fields */ }
Map is an iterator that transforms the elements of an underlying iterator.
This struct is created by the map() method on ParallelIterator
Trait Implementations
impl<I, F, R> IndexedParallelIterator for Map<I, F>
where
I: IndexedParallelIterator,
F: Fn(I::Item) -> R + Sync + Send,
R: Send,
fn drive<C>(self, consumer: C) -> C::Result where C: Consumer<Self::Item>,fn len(&self) -> usizefn with_producer<CB>(self, callback: CB) -> CB::Output where CB: ProducerCallback<Self::Item>,
impl<I, F, R> ParallelIterator for Map<I, F>
where
I: ParallelIterator,
F: Fn(I::Item) -> R + Sync + Send,
R: Send,
type Item = <F as FnOnce(<I as ParallelIterator>::Item)>::Output;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<Self::Item>,fn opt_len(&self) -> Option<usize>
impl<I: Clone, F: Clone> Clone for Map<I, F>
fn clone(&self) -> Self
impl<I: Debug, F> Debug for Map<I, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result