Trait frunk_core::hlist::HZippable[][src]

pub trait HZippable<Other> {
    type Zipped: HList;
    fn zip(self, other: Other) -> Self::Zipped;
}

Trait for zipping HLists

This trait is part of the implementation of the inherent method HCons::zip. Please see that method for more information.

You only need to import this trait when working with generic HLists of unknown type. If the type of everything is known, then list.zip(list2) should “just work” even without the trait.

Associated Types

Loading content...

Required methods

fn zip(self, other: Other) -> Self::Zipped[src]

Zip this HList with another one.

Please see the inherent method for more information.

Loading content...

Implementors

impl HZippable<HNil> for HNil[src]

type Zipped = HNil

impl<H1, T1, H2, T2> HZippable<HCons<H2, T2>> for HCons<H1, T1> where
    T1: HZippable<T2>, 
[src]

type Zipped = HCons<(H1, H2), T1::Zipped>

Loading content...