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

pub struct HNil;

Represents the right-most end of a heterogeneous list

Examples


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

Trait Implementations

impl PartialEq for HNil
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Debug for HNil
[src]

[src]

Formats the value using the given formatter.

impl Eq for HNil
[src]

impl Clone for HNil
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for HNil
[src]

impl PartialOrd for HNil
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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]

[src]

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

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl Hash for HNil
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl HList for HNil
[src]

LEN: usize = 0

Returns the length of a given HList type without making use of any references, or in fact, any values at all. Read more

[src]

Deprecated since 0.1.31

: Please use LEN instead

Returns the length of a given HList type without making use of any references, or in fact, any values at all. Read more

[src]

Deprecated since 0.1.30

: Please use len() or static_len() instead.

[src]

Returns the length of a given HList Read more

[src]

Prepends an item to the current HList Read more

impl AsRef<HNil> for HNil
[src]

[src]

Performs the conversion.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl IntoReverse for HNil
[src]

[src]

Reverses a given data structure. Read more

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

[src]

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

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

[src]

foldr over a data structure Read more

impl<F, Acc> HFoldLeftable<F, Acc, Here> for HNil
[src]

[src]

foldl over a data structure Read more

impl IntoUnlabelled for HNil
[src]

Implementation for HNil

[src]

Turns the current HList into an unlabelled on. Read more