Macro frunk::hlist
[−]
[src]
macro_rules! hlist { () => { ... }; ($single: expr) => { ... }; ($first: expr, $( $repeated: expr ), +) => { ... }; }
Returns an HList
based on the values passed in.
Helps to avoid having to write nested HCons
.
let h = hlist![13.5f32, "hello", Some(41)]; let (h1, (h2, h3)) = h.into_tuple2(); assert_eq!(h1, 13.5f32); assert_eq!(h2, "hello"); assert_eq!(h3, Some(41))Run