Struct Iter

struct Iter<'a, A: 'a> { ... }

An 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 Option::iter function.

Implementations

impl<'a, A> DoubleEndedIterator for Iter<'a, A>

fn next_back(self: &mut Self) -> Option<&'a A>

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

impl<'a, A> Iterator for Iter<'a, A>

fn next(self: &mut Self) -> Option<&'a A>
fn size_hint(self: &Self) -> (usize, Option<usize>)

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

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

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

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

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

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

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

impl<A> Clone for Iter<'_, A>

fn clone(self: &Self) -> Self

impl<A> ExactSizeIterator for Iter<'_, A>

impl<A> FusedIterator for Iter<'_, A>

impl<A> TrustedLen for Iter<'_, A>

impl<I> IntoIterator for Iter<'a, A>

fn into_iter(self: Self) -> I

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

fn type_id(self: &Self) -> TypeId

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

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

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

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

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

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

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, A>

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

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

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