Trait hash_trie::traits::BitInsert [−][src]
pub trait BitInsert { fn bit_insert(&self, bit: Self) -> Result<Self, BitError>
where
Self: Sized; }
Expand description
BitInsert
supports inserting a bit into the word.
Required methods
fn bit_insert(&self, bit: Self) -> Result<Self, BitError> where
Self: Sized,
fn bit_insert(&self, bit: Self) -> Result<Self, BitError> where
Self: Sized,
Insert the bit into the word or return either BitError::CountNotEqualToOne or BitError::Found.
e.g. 0b10010.bit_insert(0b100) == 0b10110