Struct hlist::Cons [] [src]

pub struct Cons<H, T>(pub H, pub T);

An HList with H at position 0, and T as the rest of the list.

Trait Implementations

impl<H, T> HList for Cons<H, T>

fn push<N>(self, item: N) -> Cons<N, Self>

impl<T, Tail> Find<T, Here> for Cons<T, Tail>

fn get(&self) -> &T

fn get_mut(&mut self) -> &mut T

impl<Head, T, Tail, TailIndex> Find<T, There<TailIndex>> for Cons<Head, Tail> where Tail: Find<T, TailIndex>

fn get(&self) -> &T

fn get_mut(&mut self) -> &mut T