Trait frunk_core::labelled::IntoUnlabelled
[−]
[src]
pub trait IntoUnlabelled { type Output; fn into_unlabelled(self) -> Self::Output; }
Trait for turning a Field HList into an un-labelled HList
Associated Types
type Output
Required Methods
fn into_unlabelled(self) -> Self::Output
Turns the current HList into an unlabelled one.
Effectively extracts the values held inside the individual Field
Examples
use frunk::labelled::chars::*; use frunk::labelled::IntoUnlabelled; let labelled_hlist = hlist![ field!((n, a, m, e), "joe"), field!((a, g, e), 3) ]; let unlabelled = labelled_hlist.into_unlabelled(); assert_eq!(unlabelled, hlist!["joe", 3])Run
Implementors
impl IntoUnlabelled for HNil type Output = HNil;
impl<Label, Value, Tail> IntoUnlabelled for HCons<Field<Label, Value>, Tail> where
Tail: IntoUnlabelled, type Output = HCons<Value, <Tail as IntoUnlabelled>::Output>;