Struct WhileSome
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct WhileSome<I> { /* private fields */ }
WhileSome is an iterator that yields the Some elements of an iterator,
halting as soon as any None is produced.
This struct is created by the while_some() method on ParallelIterator
Trait Implementations
impl<I, T> ParallelIterator for WhileSome<I>
where
I: ParallelIterator<Item = Option<T>>,
T: Send,
type Item = T;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<Self::Item>,
impl<I: Clone> Clone for WhileSome<I>
fn clone(&self) -> Self
impl<I: Debug> Debug for WhileSome<I>
fn fmt(&self, f: &mut Formatter<'_>) -> Result