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

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

An iterator that maps each element to an iterator, and yields the elements of the produced iterators

Trait Implementations

impl<I, U, F> Iterator for FlatMap<I, U, F> where I: Iterator, U: Iterator, F: FnMut(<I as Iterator>::Item), <F as FnMut(<I as Iterator>::Item)>::Output == U

type Item = <U as Iterator>::Item

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

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

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

impl<I, U, F> DoubleEndedIterator for FlatMap<I, U, F> where I: DoubleEndedIterator, U: DoubleEndedIterator, F: FnMut(<I as Iterator>::Item), <F as FnMut(<I as Iterator>::Item)>::Output == U

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

Derived Implementations

impl<I, U, F> Clone for FlatMap<I, U, F> where I: Clone, U: Clone, F: Clone

fn clone(&self) -> FlatMap<I, U, F>

fn clone_from(&mut self, &FlatMap<I, U, F>)