Struct frunk_core::hlist::HNil [] [src]

pub struct HNil;

Represents the right-most end of a heterogeneous list

Used to begin one:


let h = h_cons(1, HNil);
let h = h.head;
assert_eq!(h, 1);

Trait Implementations

impl PartialEq for HNil
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for HNil
[src]

Formats the value using the given formatter.

impl Eq for HNil
[src]

impl Clone for HNil
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for HNil
[src]

impl PartialOrd for HNil
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for HNil
[src]

This method returns an Ordering between self and other. Read more

impl HList for HNil
[src]

Returns the length of a given HList Read more

Prepends an item to the current HList Read more

impl<RHS> Add<RHS> for HNil where RHS: HList
[src]

The resulting type after applying the + operator

The method for the + operator

impl IntoReverse for HNil
[src]

Reverses a given data structure. Read more

impl<F> HMappable<F> for HNil
[src]

Maps over the current data structure using functions stored in another data structure. Read more

impl<F, Init> HFoldRightable<F, Init> for HNil
[src]

foldr over a data structure Read more

impl<F, Acc> HZipFoldLeftable<F, Acc> for HNil
[src]

foldl over a data structure Read more