Struct rust_examples::dependent::Zero[][src]

pub struct Zero;
Expand description

Type-level definition of the natural number 0.

Trait Implementations

HNil is an empty HList (i.e. of length N = 0).

Add given element to the front of this HList.

Concatenate this and given HList. Read more

Analogy to Vec::len.

Lower Zero from type to the term 0.

Zero is the neutral element of addition: ![N]: 0 + N = X = N

Zero is a predecessor of Zero.

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.