Struct FilterMap
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct FilterMap<I, P> { /* private fields */ }
FilterMap creates an iterator that uses filter_op to both filter and map elements.
This struct is created by the filter_map() method on ParallelIterator.
Trait Implementations
impl<I, P, R> ParallelIterator for FilterMap<I, P>
where
I: ParallelIterator,
P: Fn(I::Item) -> Option<R> + Sync + Send,
R: Send,
type Item = R;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<Self::Item>,
impl<I: Clone, P: Clone> Clone for FilterMap<I, P>
fn clone(&self) -> Self
impl<I: Debug, P> Debug for FilterMap<I, P>
fn fmt(&self, f: &mut Formatter<'_>) -> Result