Struct IterMut

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

An iterator over a mutable 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_mut function.

Implementations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

fn into_iter(self: Self) -> I

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

fn type_id(self: &Self) -> TypeId

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

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

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for IterMut<'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 IterMut<'a, A>

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

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

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