pub trait BitTest {
    fn bit_len(&self) -> usize;
    fn bit(&self, n: usize) -> bool;
    fn trailing_zeros(&self) -> Option<usize>;
}
Expand description

Common bit operations for integers

Required Methods

Get the minimum required number of bits to represent this integer

Get the n-th bit of the integer

Get the number of trailing zeros in the integer

Implementations on Foreign Types

Implementors