Trait ZipImpl

Source
#[doc(hidden)] trait ZipImpl<A, B> {
    type Item;

    // Required methods
    fn new(a: A, b: B) -> Self;
    fn next(&mut self) -> Option<Self::Item>;
    fn size_hint(&self) -> (usize, Option<usize>);
    fn nth(&mut self, n: usize) -> Option<Self::Item>;
    fn next_back(&mut self) -> Option<Self::Item>
       where A: DoubleEndedIterator + ExactSizeIterator,
             B: DoubleEndedIterator + ExactSizeIterator;
    fn fold<Acc, F>(self, init: Acc, f: F) -> Acc
       where F: FnMut(Acc, Self::Item) -> Acc;
    unsafe fn get_unchecked(&mut self, idx: usize) -> <Self as Iterator>::Item
       where Self: Iterator + TrustedRandomAccessNoCoerce;
}

Required Associated Types§

Required Methods§

Source

fn new(a: A, b: B) -> Self

Source

fn next(&mut self) -> Option<Self::Item>

Source

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

Source

fn nth(&mut self, n: usize) -> Option<Self::Item>

Source

fn next_back(&mut self) -> Option<Self::Item>

Source

fn fold<Acc, F>(self, init: Acc, f: F) -> Acc
where F: FnMut(Acc, Self::Item) -> Acc,

Source

unsafe fn get_unchecked(&mut self, idx: usize) -> <Self as Iterator>::Item

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A, B> ZipImpl<A, B> for Zip<A, B>
where A: Iterator, B: Iterator,

Source§

type Item = (<A as Iterator>::Item, <B as Iterator>::Item)

Source§

impl<A, B> ZipImpl<A, B> for Zip<A, B>

Source§

impl<A, B> ZipImpl<A, B> for Zip<A, B>