Trait uints::Common

source ·
pub trait Common: Default + PartialOrd + Debug {
    type Array: Array<Output = u8>;

    const ZERO: Self;
    const ONE: Self;
    const MAX: Self;
    const BYTES: u8 = _;
    const BITS: u8 = _;

    fn leading_zeros(&self) -> u8;
    fn trailing_zeros(&self) -> u8;
    fn count_ones(&self) -> u8;

    fn log2(&self) -> u8 { ... }
}

Required Associated Types§

Required Associated Constants§

Provided Associated Constants§

Required Methods§

Provided Methods§

Implementations on Foreign Types§

Implementors§