Struct core::iter::ZipStable [-] [+] [src]

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

An iterator that iterates two other iterators simultaneously

Trait Implementations

impl<A, B> ExactSizeIterator for Zip<A, B> where A: ExactSizeIterator, B: ExactSizeIterator

fn len(&self) -> usize

impl<T, U, A, B> Iterator for Zip<A, B> where A: Iterator<Item=T>, B: Iterator<Item=U>

type Item = (T, U)

fn next(&mut self) -> Option<(T, U)>

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

impl<T, U, A, B> DoubleEndedIterator for Zip<A, B> where A: DoubleEndedIterator + ExactSizeIterator<Item=T>, B: DoubleEndedIterator + ExactSizeIterator<Item=U>

fn next_back(&mut self) -> Option<(T, U)>

impl<T, U, A, B> RandomAccessIterator for Zip<A, B> where A: RandomAccessIterator<Item=T>, B: RandomAccessIterator<Item=U>

fn indexable(&self) -> usize

fn idx(&mut self, index: usize) -> Option<(T, U)>

Derived Implementations

impl<A: Clone, B: Clone> Clone for Zip<A, B>

fn clone(&self) -> Zip<A, B>

fn clone_from(&mut self, source: &Self)