pub trait FixedWidthUnsignedInteger: Sized + Copy + PartialOrd + Ord + PartialEq + Eq + Shl<usize, Output = Self> + Shr<usize, Output = Self> + Add<Output = Self> + Sub<Output = Self> + Not<Output = Self> + BitAnd<Output = Self> + Rem<Output = Self> + Div<Output = Self> + Mul<Output = Self> + From<u8> + Debug + Display {
    fn zero() -> Self;
    fn one() -> Self;
    fn ten() -> Self;
    fn from_as_i32(v: i32) -> Self;
}
Expand description

A trait for integers that don’t implement unary negation

Required Methods§

Returns the representation of zero

Returns the representation of one

Returns the representation of ten

Converts an i32 to it’s own representation, panics on failure

Implementations on Foreign Types§

Implementors§