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) -> usize
fn 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

Auto Trait Implementations

impl<I, F> Freeze for Map<I, F> where I: Freeze, F: Freeze,

impl<I, F> RefUnwindSafe for Map<I, F> where I: RefUnwindSafe, F: RefUnwindSafe,

impl<I, F> Send for Map<I, F> where I: Send, F: Send,

impl<I, F> Sync for Map<I, F> where I: Sync, F: Sync,

impl<I, F> Unpin for Map<I, F> where I: Unpin, F: Unpin,

impl<I, F> UnsafeUnpin for Map<I, F> where I: UnsafeUnpin, F: UnsafeUnpin,

impl<I, F> UnwindSafe for Map<I, F> where I: UnwindSafe, F: UnwindSafe,

Blanket Implementations

impl<T> Any for Map<I, F> where T: 'static + ?Sized,

impl<T> Borrow<T> for Map<I, F> where T: ?Sized,

impl<T> BorrowMut<T> for Map<I, F> where T: ?Sized,

impl<T> CloneToUninit for Map<I, F> where T: Clone,

impl<T> From<T> for Map<I, F>

impl<T> IntoEither for Map<I, F>

impl<T> IntoParallelIterator for Map<I, F> where T: ParallelIterator,

impl<T> Pointable for Map<I, F>

impl<T> ToOwned for Map<I, F> where T: Clone,

impl<T, U> Into<U> for Map<I, F> where U: From<T>,

impl<T, U> TryFrom<U> for Map<I, F> where U: Into<T>,

impl<T, U> TryInto<U> for Map<I, F> where U: TryFrom<T>,