[][src]Struct fallible_iterator::Peekable

pub struct Peekable<I: FallibleIterator> { /* fields omitted */ }

An iterator which can look at the next element without consuming it.

Implementations

impl<I> Peekable<I> where
    I: FallibleIterator
[src]

pub fn peek(&mut self) -> Result<Option<&I::Item>, I::Error>[src]

Returns a reference to the next value without advancing the iterator.

Trait Implementations

impl<I: Clone + FallibleIterator> Clone for Peekable<I> where
    I::Item: Clone
[src]

impl<I: Debug + FallibleIterator> Debug for Peekable<I> where
    I::Item: Debug
[src]

impl<I> FallibleIterator for Peekable<I> where
    I: FallibleIterator
[src]

type Item = I::Item

The type being iterated over.

type Error = I::Error

The error type.

Auto Trait Implementations

impl<I> RefUnwindSafe for Peekable<I> where
    I: RefUnwindSafe,
    <I as FallibleIterator>::Item: RefUnwindSafe

impl<I> Send for Peekable<I> where
    I: Send,
    <I as FallibleIterator>::Item: Send

impl<I> Sync for Peekable<I> where
    I: Sync,
    <I as FallibleIterator>::Item: Sync

impl<I> Unpin for Peekable<I> where
    I: Unpin,
    <I as FallibleIterator>::Item: Unpin

impl<I> UnwindSafe for Peekable<I> where
    I: UnwindSafe,
    <I as FallibleIterator>::Item: UnwindSafe

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> From<T> for T[src]

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

impl<I> IntoFallibleIterator for I where
    I: FallibleIterator
[src]

type Item = <I as FallibleIterator>::Item

The elements of the iterator.

type Error = <I as FallibleIterator>::Error

The error value of the iterator.

type IntoFallibleIter = I

The iterator.

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

type Owned = T

The resulting type after obtaining ownership.

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.