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

#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Fuse<I> {
    // some fields omitted
}

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

Methods

impl<I> Fuse<I>

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<I> Iterator for Fuse<I> where I: Iterator

type Item = <I as Iterator>::Item

fn next(&mut self) -> Option<<I as Iterator>::Item>

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

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

impl<I> DoubleEndedIterator for Fuse<I> where I: DoubleEndedIterator

fn next_back(&mut self) -> Option<<I as Iterator>::Item>

impl<I> RandomAccessIterator for Fuse<I> where I: RandomAccessIterator

fn indexable(&self) -> usize

fn idx(&mut self, index: usize) -> Option<<I as Iterator>::Item>

impl<I> ExactSizeIterator for Fuse<I> where I: ExactSizeIterator

fn len(&self) -> usize

Derived Implementations

impl<I> Clone for Fuse<I> where I: Clone

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

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