pub trait HZippable<Other> {
type Zipped: HList;
// Required method
fn zip(self, other: Other) -> Self::Zipped;
}
Expand description
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.
Required Associated Types§
Required Methods§
sourcefn zip(self, other: Other) -> Self::Zipped
fn zip(self, other: Other) -> Self::Zipped
Zip this HList with another one.
Please see the inherent method for more information.