Trait bittle::Number[][src]

pub trait Number: Bits {
    const BITS: usize;

    fn trailing_zeros(self) -> usize;
}
Expand description

Basic numerical trait for the plumbing of a bit set. This ensures that only primitive types can be used as the basis of a bit set backed by an array, like [u64; 4] and not [[u32; 2]; 4].

Associated Constants

How many bits there are in this number.

Required methods

Number of trailing zeros.

Implementations on Foreign Types

Implementors