Struct Iter

struct Iter<'a, T: Sync> { ... }

A parallel iterator over a reference to the Some variant of an Option.

The iterator yields one value if the Option is a Some, otherwise none.

This struct is created by the par_iter function.

Implementations

impl<'a, T> Freeze for Iter<'a, T>

impl<'a, T> RefUnwindSafe for Iter<'a, T>

impl<'a, T> Send for Iter<'a, T>

impl<'a, T> Sync for Iter<'a, T>

impl<'a, T> Unpin for Iter<'a, T>

impl<'a, T> UnwindSafe for Iter<'a, T>

impl<'a, T: $crate::fmt::Debug + Sync> Debug for Iter<'a, T>

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

impl<'a, T: Sync + 'a> IndexedParallelIterator for Iter<'a, T>

fn drive<C>(self: Self, consumer: C) -> <C as >::Result
where
    C: Consumer<<Self as >::Item>
fn len(self: &Self) -> usize
fn with_producer<CB>(self: Self, callback: CB) -> <CB as >::Output
where
    CB: ProducerCallback<<Self as >::Item>

impl<'a, T: Sync + 'a> ParallelIterator for Iter<'a, T>

fn drive_unindexed<C>(self: Self, consumer: C) -> <C as >::Result
where
    C: UnindexedConsumer<<Self as >::Item>
fn opt_len(self: &Self) -> Option<usize>

impl<'a, T: Sync> Clone for Iter<'a, T>

fn clone(self: &Self) -> Self

impl<T> Any for Iter<'a, T>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Iter<'a, T>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Iter<'a, T>

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

impl<T> CloneToUninit for Iter<'a, T>

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

impl<T> From for Iter<'a, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoParallelIterator for Iter<'a, T>

fn into_par_iter(self: Self) -> T

impl<T> Pointable for Iter<'a, 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 Iter<'a, T>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Iter<'a, T>

fn into(self: 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 for Iter<'a, T>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Iter<'a, T>

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