Struct Positions

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

Positions takes a predicate predicate and filters out elements that match, yielding their indices.

This struct is created by the positions() method on IndexedParallelIterator

Trait Implementations

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

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

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

fn clone(&self) -> Self

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

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

Auto Trait Implementations

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

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

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

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

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

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

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

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

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