Struct rust_examples::dependent::HCons[][src]

pub struct HCons<N, M, H, T>(pub H, pub T, _, _);
Expand description

Structure representing a non-empty HList consisting of a head and tail.

N encodes the length of this HList while M = N - 1 is the length of the tail HList.

Tuple Fields

0: H

Head of this HList.

1: T

Tail of this HList which itself is a HList of length M = N - 1.

Implementations

Take an immutable reference to the head element of this HList represented by HCons.

Take an immutable reference to the tail HList contained in this HCons.

Trait Implementations

HCons<N, M, _, T> is a HList of length N > 0 if T is a HList of length M = N - 1.

Add given element to the front of this HList.

Concatenate this and given HList. Read more

Analogy to Vec::len.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.