Trait compacts_prim::UnsignedInt [] [src]

pub trait UnsignedInt: PartialEq + PartialOrd + Eq + Ord + Copy {
    const WIDTH: usize;
    const MIN_BOUND: Self;
    const MAX_BOUND: Self;

    fn count_ones(self) -> u32;
    fn count_zeros(self) -> u32;
    fn succ(&self) -> Self;
    fn pred(&self) -> Self;
}

Associated Constants

WIDTH: usize

MIN_BOUND: Self

MAX_BOUND: Self

Required Methods

Implementors