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) -> WhileSome<I>

impl<I: Debug> Debug for WhileSome<I>

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

Auto Trait Implementations

impl<I> Freeze for WhileSome<I> where I: Freeze,

impl<I> RefUnwindSafe for WhileSome<I> where I: RefUnwindSafe,

impl<I> Send for WhileSome<I> where I: Send,

impl<I> Sync for WhileSome<I> where I: Sync,

impl<I> Unpin for WhileSome<I> where I: Unpin,

impl<I> UnsafeUnpin for WhileSome<I> where I: UnsafeUnpin,

impl<I> UnwindSafe for WhileSome<I> where I: UnwindSafe,

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for WhileSome<I> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for WhileSome<I>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for WhileSome<I>

impl<T> IntoParallelIterator for WhileSome<I> where T: ParallelIterator,

type Iter = T;
type Item = <T as ParallelIterator>::Item;
fn into_par_iter(self) -> T

impl<T> Pointable for WhileSome<I>

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> ToOwned for WhileSome<I> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>