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]

[src]

Returns a copy of the value. Read more

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]

[src]

Formats the value using the given formatter.

impl<H: Default, T: Default> Default for Cons<H, T>
[src]

[src]

Returns the "default value" for a type. Read more

impl<H, T> HList for Cons<H, T>
[src]

[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]

[src]

Retrieves a &T. Read more

[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]

[src]

Retrieves a &T. Read more

[src]

Retrieves a &mut T. Read more

impl<H, T, RHS> Add<RHS> for Cons<H, T> where
    T: Add<RHS>, 
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.