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

Count the number of 1s in the word using count_ones().

e.g. 0b10110.count_ones_t() == 3

Implementations on Foreign Types

Implementors