pub trait BitStore: Shl<u32, Output = Self> + ShlAssign<u32> + Sized + From<u32> + Sub<Output = Self> + Add<Output = Self> + Mul<Output = Self> + Div<Output = Self> + AddAssign + PartialOrd + Copy {
    const BITS: u32;
    const ZERO: Self;
    const ONE: Self;

    fn log2(self) -> u32;
}
Expand description

A trait for a type that can be used for the internal integer representation of an encoder or decoder

Associated Constants

the number of bits needed to represent this type

the additive identity

the multiplicative identity

Required methods

integer natural logarithm, rounded down

Implementations on Foreign Types

Implementors