Trait frunk::traits::IntoReverse

source ·
pub trait IntoReverse {
    type Output;

    // Required method
    fn into_reverse(self) -> Self::Output;
}
Expand description

Trait that allows for reversing a given data structure.

Implemented for HLists.

This functionality is also provided as an inherent method. However, you may find this trait useful in generic contexts.

Required Associated Types§

Required Methods§

source

fn into_reverse(self) -> Self::Output

Reverses a given data structure.

Implementors§

source§

impl IntoReverse for HNil

source§

impl<H, Tail> IntoReverse for HCons<H, Tail>
where Tail: IntoReverse, <Tail as IntoReverse>::Output: Add<HCons<H, HNil>>,

source§

type Output = <<Tail as IntoReverse>::Output as Add<HCons<H, HNil>>>::Output