Struct Inspect
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Inspect<I, F> { /* private fields */ }
Inspect is an iterator that calls a function with a reference to each
element before yielding it.
This struct is created by the inspect() method on ParallelIterator
Trait Implementations
impl<I, F> IndexedParallelIterator for Inspect<I, F>
where
I: IndexedParallelIterator,
F: Fn(&I::Item) + Sync + 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> ParallelIterator for Inspect<I, F>
where
I: ParallelIterator,
F: Fn(&I::Item) + Sync + Send,
type Item = <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, F: Clone> Clone for Inspect<I, F>
fn clone(&self) -> Self
impl<I: Debug, F> Debug for Inspect<I, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result