Struct rust_examples::dependent::Succ[][src]

pub struct Succ<N: Nat>(_);
Expand description

Type-level definition of a successor of a natural number N, i.e. the number N + 1.

Trait Implementations

Lower N from a type-level to a term-level value.

Addition is associative: ![N]: (M + 1) + N = (X + 1) if X = M + N => M: AddEq<N, X>

For each Succ<N: Nat> = N + 1 there is a predecessor N: Nat.

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.