Struct fallible_iterator::Cloned
[−]
[src]
pub struct Cloned<I>(_);
An iterator which clones the elements of the underlying iterator.
Trait Implementations
impl<I: Debug> Debug for Cloned<I>
[src]
impl<'a, T, I> FallibleIterator for Cloned<I> where I: FallibleIterator<Item=&'a T>, T: 'a + Clone
[src]
type Item = T
The type being iterated over.
type Error = I::Error
The error type.
fn next(&mut self) -> Result<Option<T>, I::Error>
Advances the iterator and returns the next value. Read more
fn size_hint(&self) -> (usize, Option<usize>)
Returns bounds on the remaining length of the iterator. Read more
fn count(self) -> Result<usize, I::Error>
Consumes the iterator, returning the number of remaining items.
fn by_ref(&mut self) -> &mut Self where Self: Sized
Borrow an iterator rather than consuming it. Read more
fn chain<I>(self, it: I) -> Chain<Self, I> where I: IntoFallibleIterator<Item=Self::Item, Error=Self::Error>, Self: Sized
Returns an iterator which yields the elements of this iterator followed by another. Read more
fn cloned<'a, T>(self) -> Cloned<Self> where Self: Sized + FallibleIterator<Item=&'a T>, T: 'a + Clone
Returns an iterator which clones all of its elements.
fn collect<T>(self) -> Result<T, Self::Error> where T: FromFallibleIterator<Self::Item>, Self: Sized
Transforms the iterator into a collection. Read more
fn enumerate(self) -> Enumerate<Self> where Self: Sized
Returns an iterator which yields the current iteration count as well as the value. Read more
fn fuse(self) -> Fuse<Self> where Self: Sized
Returns an iterator which yields this iterator's elements and ends after the frist Ok(None)
. Read more
fn last(self) -> Result<Option<Self::Item>, Self::Error> where Self: Sized
Returns the last element of the iterator.
fn map<B, F>(self, f: F) -> Map<Self, F> where F: FnMut(Self::Item) -> B, Self: Sized
Returns an iterator which applies a transform to the elements of the underlying iterator. Read more
fn nth(&mut self, n: usize) -> Result<Option<Self::Item>, Self::Error>
Returns the n
th element of the iterator.
fn peekable(self) -> Peekable<Self> where Self: Sized
Returns an iterator that can peek at the next element without consuming it. Read more
fn rev(self) -> Rev<Self> where Self: Sized + DoubleEndedFallibleIterator
Returns an iterator that yields this iterator's items in the opposite order. Read more
fn take(self, n: usize) -> Take<Self> where Self: Sized
Returns an iterator that yeilds only the first n
values of this iterator. Read more