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