Trait turbo::Peano []

pub trait Peano where
    Self: Sized
{ fn successor(&self) -> Result<Self, OverflowError>; fn predecessor(&self) -> Result<Self, OverflowError>; fn cmp(&self, other: &Self) -> Ordering; }

Peano arithmetic operators.

Required Methods

Produces the next integer value in the field of self (i.e., increment).

Produces the previous integer value in the field of self (i.e., decrement).

Total ordering function.

Implementors