Skip to main content

Zip

Trait Zip 

Source
pub trait Zip<O> {
    type Output: UnZip<Left = Self, Right = O>;

    // Required method
    fn zip(self, other: O) -> Self::Output;
}

Required Associated Types§

Source

type Output: UnZip<Left = Self, Right = O>

Required Methods§

Source

fn zip(self, other: O) -> Self::Output

Implementors§

Source§

impl Zip<Nil> for Nil

Source§

impl<T, U, R: Zip<S>, S> Zip<Cons<U, S>> for Cons<T, R>

Source§

type Output = Cons<(T, U), <R as Zip<S>>::Output>