Struct std::iter::FuseStable [-]  [+] [src]

pub struct Fuse<T> {
    // some fields omitted
}

An iterator that yields None forever after the underlying iterator yields None once.

Methods

impl<T> Fuse<T>

fn reset_fuse(&mut self)

Resets the fuse such that the next call to .next() or .next_back() will call the underlying iterator again even if it previously returned None.

Trait Implementations

impl<A, T: Iterator<A>> Iterator<A> for Fuse<T>

fn next(&mut self) -> Option<A>

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

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

impl<A, T: DoubleEndedIterator<A>> DoubleEndedIterator<A> for Fuse<T>

fn next_back(&mut self) -> Option<A>

impl<A, T: RandomAccessIterator<A>> RandomAccessIterator<A> for Fuse<T>

fn indexable(&self) -> uint

fn idx(&mut self, index: uint) -> Option<A>

Derived Implementations

impl<T: Clone> Clone for Fuse<T>

fn clone(&self) -> Fuse<T>

fn clone_from(&mut self, &Fuse<T>)