Trait concrete_commons::numeric::Numeric[][src]

pub trait Numeric: Sized + Copy + PartialEq + PartialOrd {
    const BITS: usize;
    const ZERO: Self;
    const ONE: Self;
    const TWO: Self;
    const MAX: Self;
}
Expand description

A trait implemented by any generic numeric type suitable for computations.

Associated Constants

This size of the type in bits.

The null element of the type.

The identity element of the type.

A value of two.

The largest value that can be encoded by the type.

Implementations on Foreign Types

Implementors