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
fn bit_contains(&self, bit: Self) -> Result<bool, BitError>
fn bit_contains(&self, bit: Self) -> Result<bool, BitError>
Check whether the word contains the bit or return BitError::CountNotEqualToOne if the bit is invalid.
e.g. 0b110110.bit_contains(0b100) == true