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
Required methods
fn trailing_zeros(self) -> usize
fn trailing_zeros(self) -> usize
Number of trailing zeros.