Struct fallible_iterator::Peekable [] [src]

pub struct Peekable<I: FallibleIterator> {
    // some fields omitted
}
[]

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

Methods

impl<I> Peekable<I> where I: FallibleIterator

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

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

Trait Implementations

impl<I> FallibleIterator for Peekable<I> where I: FallibleIterator

type Item = I::Item

type Error = I::Error

fn next(&mut self) -> Result<Option<I::Item>, I::Error>

fn size_hint(&self) -> (usize, Option<usize>)

fn by_ref(&mut self) -> &mut Self where Self: Sized

fn chain<I>(self, it: I) -> Chain<Self, I> where I: IntoFallibleIterator<Item=Self::Item, Error=Self::Error>, Self: Sized

fn cloned<'a, T>(self) -> Cloned<Self> where Self: Sized + FallibleIterator<Item=&'a T>, T: 'a + Clone

fn count(self) -> Result<usize, Self::Error> where Self: Sized

fn collect<T>(self) -> Result<T, Self::Error> where T: FromFallibleIterator<Self::Item>, Self: Sized

fn enumerate(self) -> Enumerate<Self> where Self: Sized

fn fuse(self) -> Fuse<Self> where Self: Sized

fn last(self) -> Result<Option<Self::Item>, Self::Error> where Self: Sized

fn map<B, F>(self, f: F) -> Map<Self, F> where F: FnMut(Self::Item) -> B, Self: Sized

fn nth(&mut self, n: usize) -> Result<Option<Self::Item>, Self::Error>

fn peekable(self) -> Peekable<Self> where Self: Sized

fn rev(self) -> Rev<Self> where Self: Sized + DoubleEndedFallibleIterator

fn take(self, n: usize) -> Take<Self> where Self: Sized

Derived Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result