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

Auto Trait Implementations

impl<I, P> Freeze for FilterMap<I, P> where I: Freeze, P: Freeze,

impl<I, P> RefUnwindSafe for FilterMap<I, P> where I: RefUnwindSafe, P: RefUnwindSafe,

impl<I, P> Send for FilterMap<I, P> where I: Send, P: Send,

impl<I, P> Sync for FilterMap<I, P> where I: Sync, P: Sync,

impl<I, P> Unpin for FilterMap<I, P> where I: Unpin, P: Unpin,

impl<I, P> UnsafeUnpin for FilterMap<I, P> where I: UnsafeUnpin, P: UnsafeUnpin,

impl<I, P> UnwindSafe for FilterMap<I, P> where I: UnwindSafe, P: UnwindSafe,

Blanket Implementations

impl<T> Any for FilterMap<I, P> where T: 'static + ?Sized,

impl<T> Borrow<T> for FilterMap<I, P> where T: ?Sized,

impl<T> BorrowMut<T> for FilterMap<I, P> where T: ?Sized,

impl<T> CloneToUninit for FilterMap<I, P> where T: Clone,

impl<T> From<T> for FilterMap<I, P>

impl<T> IntoEither for FilterMap<I, P>

impl<T> IntoParallelIterator for FilterMap<I, P> where T: ParallelIterator,

impl<T> Pointable for FilterMap<I, P>

impl<T> ToOwned for FilterMap<I, P> where T: Clone,

impl<T, U> Into<U> for FilterMap<I, P> where U: From<T>,

impl<T, U> TryFrom<U> for FilterMap<I, P> where U: Into<T>,

impl<T, U> TryInto<U> for FilterMap<I, P> where U: TryFrom<T>,