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
sourcefn trailing_zeros(&self) -> Option<usize>
fn trailing_zeros(&self) -> Option<usize>
Get the number of trailing zeros in the integer