Struct MapInit

#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct MapInit<I, INIT, F> { /* private fields */ }

MapInit is an iterator that transforms the elements of an underlying iterator.

This struct is created by the map_init() method on ParallelIterator

Trait Implementations

impl<I, INIT, T, F, R> IndexedParallelIterator for MapInit<I, INIT, F> where I: IndexedParallelIterator, INIT: Fn() -> T + Sync + Send, F: Fn(&mut T, 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, INIT, T, F, R> ParallelIterator for MapInit<I, INIT, F> where I: ParallelIterator, INIT: Fn() -> T + Sync + Send, F: Fn(&mut T, I::Item) -> R + Sync + Send, R: Send,

type Item = R;
fn drive_unindexed<C>(self, consumer: C) -> C::Result
where
    C: UnindexedConsumer<Self::Item>,
fn opt_len(&self) -> Option<usize>

impl<I: Clone, INIT: Clone, F: Clone> Clone for MapInit<I, INIT, F>

fn clone(&self) -> Self

impl<I: Debug, INIT, F> Debug for MapInit<I, INIT, F>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<I, INIT, F> Freeze for MapInit<I, INIT, F> where I: Freeze, INIT: Freeze, F: Freeze,

impl<I, INIT, F> RefUnwindSafe for MapInit<I, INIT, F> where I: RefUnwindSafe, INIT: RefUnwindSafe, F: RefUnwindSafe,

impl<I, INIT, F> Send for MapInit<I, INIT, F> where I: Send, INIT: Send, F: Send,

impl<I, INIT, F> Sync for MapInit<I, INIT, F> where I: Sync, INIT: Sync, F: Sync,

impl<I, INIT, F> Unpin for MapInit<I, INIT, F> where I: Unpin, INIT: Unpin, F: Unpin,

impl<I, INIT, F> UnsafeUnpin for MapInit<I, INIT, F> where I: UnsafeUnpin, INIT: UnsafeUnpin, F: UnsafeUnpin,

impl<I, INIT, F> UnwindSafe for MapInit<I, INIT, F> where I: UnwindSafe, INIT: UnwindSafe, F: UnwindSafe,

Blanket Implementations

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

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

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

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

impl<T> From<T> for MapInit<I, INIT, F>

impl<T> IntoEither for MapInit<I, INIT, F>

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

impl<T> Pointable for MapInit<I, INIT, F>

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

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

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

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