Trait hash_trie::traits::CountOnes [−][src]
pub trait CountOnes { fn count_ones_t(&self) -> usize; }
Expand description
CountOnes
supports counting 1s in the word. (i.e. a call to the standard count_ones()
function)
Required methods
fn count_ones_t(&self) -> usize
fn count_ones_t(&self) -> usize
Count the number of 1s in the word using count_ones()
.
e.g. 0b10110.count_ones_t() == 3