Trait frunk_core::hlist::IntoReverse [] [src]

pub trait IntoReverse {
    type Output;
    fn into_reverse(self) -> Self::Output;
}

Trait that allows for reversing a given data structure.

Implemented for HCons and HNil.

Associated Types

Required Methods

Reverses a given data structure.

Examples

let nil = HNil;

assert_eq!(nil.into_reverse(), nil);

let h = hlist![1, "hello", true, 42f32];
assert_eq!(h.into_reverse(), hlist![42f32, true, "hello", 1])Run

Implementors