[−][src]Trait frunk::hlist::IntoTuple2
Trait for transforming an HList into a nested tuple.
This trait is part of the implementation of the inherent method
HCons::into_tuple2
. Please see that method for more information.
This operation is not useful in generic contexts, so it is unlikely
that you should ever need to import this trait. Do not worry;
if you have an HList of known type, then list.into_tuple2()
should "just work," even without the trait.
Associated Types
Loading content...Required methods
fn into_tuple2(self) -> (Self::HeadType, Self::TailOutput)
Turns an HList into nested Tuple2s, which are less troublesome to pattern match and have a nicer type signature.
Please see the inherent method for more information.
Implementors
impl<T, Tail> IntoTuple2 for HCons<T, Tail> where
Tail: IntoTuple2,
[src]
Tail: IntoTuple2,
type HeadType = T
type TailOutput = (<Tail as IntoTuple2>::HeadType, <Tail as IntoTuple2>::TailOutput)
fn into_tuple2(
self
) -> (<HCons<T, Tail> as IntoTuple2>::HeadType, <HCons<T, Tail> as IntoTuple2>::TailOutput)
[src]
self
) -> (<HCons<T, Tail> as IntoTuple2>::HeadType, <HCons<T, Tail> as IntoTuple2>::TailOutput)
impl<T1, T2> IntoTuple2 for HCons<T1, HCons<T2, HNil>>
[src]
type HeadType = T1
type TailOutput = T2
fn into_tuple2(
self
) -> (<HCons<T1, HCons<T2, HNil>> as IntoTuple2>::HeadType, <HCons<T1, HCons<T2, HNil>> as IntoTuple2>::TailOutput)
[src]
self
) -> (<HCons<T1, HCons<T2, HNil>> as IntoTuple2>::HeadType, <HCons<T1, HCons<T2, HNil>> as IntoTuple2>::TailOutput)