Trait hash_trie::traits::BitContains[][src]

pub trait BitContains {
    fn bit_contains(&self, bit: Self) -> Result<bool, BitError>;
}
Expand description

BitContains supports testing to see if a bit is present in the word or not.

Required methods

Check whether the word contains the bit or return BitError::CountNotEqualToOne if the bit is invalid.

e.g. 0b110110.bit_contains(0b100) == true

Implementations on Foreign Types

Implementors