Struct nom::lib::std::option::Iter1.0.0[][src]

pub struct Iter<'a, A> where
    A: 'a, 
{ /* fields omitted */ }

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.

Trait Implementations

impl<'_, A> Clone for Iter<'_, A>[src]

impl<'a, A> Debug for Iter<'a, A> where
    A: 'a + Debug
[src]

impl<'a, A> DoubleEndedIterator for Iter<'a, A>[src]

impl<'_, A> ExactSizeIterator for Iter<'_, A>[src]

impl<'_, A> FusedIterator for Iter<'_, A>1.26.0[src]

impl<'a, A> Iterator for Iter<'a, A>[src]

type Item = &'a A

The type of the elements being iterated over.

impl<'_, A> TrustedLen for Iter<'_, A>[src]

Auto Trait Implementations

impl<'a, A> RefUnwindSafe for Iter<'a, A> where
    A: RefUnwindSafe
[src]

impl<'a, A> Send for Iter<'a, A> where
    A: Sync
[src]

impl<'a, A> Sync for Iter<'a, A> where
    A: Sync
[src]

impl<'a, A> Unpin for Iter<'a, A>[src]

impl<'a, A> UnwindSafe for Iter<'a, A> where
    A: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.