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
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.
