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

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

An iterator that only iterates over the first n iterations of iter.

Trait Implementations

impl<I> Iterator for Take<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> RandomAccessIterator for Take<I> where I: RandomAccessIterator

fn indexable(&self) -> usize

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

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

fn len(&self) -> usize

Derived Implementations

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

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

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