Struct TakeAnyWhile
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct TakeAnyWhile<I, P> { /* private fields */ }
TakeAnyWhile is an iterator that iterates over elements from anywhere in I
until the callback returns false.
This struct is created by the take_any_while() method on ParallelIterator
Trait Implementations
impl<I, P> ParallelIterator for TakeAnyWhile<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 TakeAnyWhile<I, P>
fn clone(&self) -> Self
impl<I: Debug, P> Debug for TakeAnyWhile<I, P>
fn fmt(&self, f: &mut Formatter<'_>) -> Result