Struct Filter

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

Filter takes a predicate filter_op and filters out elements that match. This struct is created by the filter() method on ParallelIterator

Trait Implementations

impl<I, P> ParallelIterator for Filter<I, P> where I: ParallelIterator, P: Fn(&I::Item) -> bool + Sync + Send,

type Item = <I as ParallelIterator>::Item;
fn drive_unindexed<C>(self, consumer: C) -> C::Result
where
    C: UnindexedConsumer<Self::Item>,

impl<I: Clone, P: Clone> Clone for Filter<I, P>

fn clone(&self) -> Self

impl<I: Debug, P> Debug for Filter<I, P>

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

Auto Trait Implementations

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

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

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

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

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

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

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

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

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