Struct MapWith

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

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

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

Trait Implementations

impl<I, T, F, R> IndexedParallelIterator for MapWith<I, T, F> where I: IndexedParallelIterator, T: Send + Clone, 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, T, F, R> ParallelIterator for MapWith<I, T, F> where I: ParallelIterator, T: Send + Clone, 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, T: Clone, F: Clone> Clone for MapWith<I, T, F>

fn clone(&self) -> Self

impl<I: Debug, T: Debug, F> Debug for MapWith<I, T, F>

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

Auto Trait Implementations

impl<I, T, F> Freeze for MapWith<I, T, F> where I: Freeze, T: Freeze, F: Freeze,

impl<I, T, F> RefUnwindSafe for MapWith<I, T, F> where I: RefUnwindSafe, T: RefUnwindSafe, F: RefUnwindSafe,

impl<I, T, F> Send for MapWith<I, T, F> where I: Send, T: Send, F: Send,

impl<I, T, F> Sync for MapWith<I, T, F> where I: Sync, T: Sync, F: Sync,

impl<I, T, F> Unpin for MapWith<I, T, F> where I: Unpin, T: Unpin, F: Unpin,

impl<I, T, F> UnsafeUnpin for MapWith<I, T, F> where I: UnsafeUnpin, T: UnsafeUnpin, F: UnsafeUnpin,

impl<I, T, F> UnwindSafe for MapWith<I, T, F> where I: UnwindSafe, T: UnwindSafe, F: UnwindSafe,

Blanket Implementations

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

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

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

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

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

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

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

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

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

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

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

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