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: Clone, T: Clone> Clone for Cons<H, T>
[src]
fn clone(&self) -> Cons<H, T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<H: Copy, T: Copy> Copy for Cons<H, T>
[src]
impl<H: Debug, T: Debug> Debug for Cons<H, T>
[src]
impl<H: Default, T: Default> Default for Cons<H, T>
[src]
impl<H, T> HList for Cons<H, T>
[src]
fn push<N>(self, item: N) -> Cons<N, Self>
[src]
Consumes the HList
, and returns a new HList with item
at the beginning.
impl<T, Tail> Find<T, Here> for Cons<T, Tail>
[src]
fn get(&self) -> &T
[src]
Retrieves a &T
. Read more
fn get_mut(&mut self) -> &mut T
[src]
Retrieves a &mut T
. Read more
impl<Head, T, Tail, TailIndex> Find<T, There<TailIndex>> for Cons<Head, Tail> where
Tail: Find<T, TailIndex>,
[src]
Tail: Find<T, TailIndex>,
fn get(&self) -> &T
[src]
Retrieves a &T
. Read more
fn get_mut(&mut self) -> &mut T
[src]
Retrieves a &mut T
. Read more
impl<H, T, RHS> Add<RHS> for Cons<H, T> where
T: Add<RHS>,
[src]
T: Add<RHS>,