[][src]Trait typsy::hlist::Access

pub trait Access<T, N>: HList + Sized {
    type Remainder;
    pub fn take(self) -> (T, Self::Remainder);
pub fn get(&self) -> &T;
pub fn get_mut(&mut self) -> &mut T; }

Associated Types

Loading content...

Required methods

pub fn take(self) -> (T, Self::Remainder)[src]

pub fn get(&self) -> &T[src]

pub fn get_mut(&mut self) -> &mut T[src]

Loading content...

Implementors

impl<T, R: HList> Access<T, Zero> for Cons<T, R>[src]

type Remainder = R

impl<T, U, R: Access<U, N>, N> Access<U, Succ<N>> for Cons<T, R>[src]

type Remainder = Cons<T, R::Remainder>

Loading content...