Struct std::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, <A as Iterator>::Item == T, B: Iterator, <B as Iterator>::Item == U

type Item = (T, U)

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

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

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

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

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

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

fn indexable(&self) -> usize

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

Derived Implementations

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

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

fn clone_from(&mut self, &Zip<A, B>)