Trait bitutils2::BitIndexable
source · pub trait BitIndexable {
// Required methods
fn bit_at(&self, index: &BitIndex) -> u8;
fn bit_slice(&self, start: &BitIndex, end: &BitIndex) -> BitField;
fn max_index(&self) -> BitIndex;
}Required Methods§
sourcefn bit_at(&self, index: &BitIndex) -> u8
fn bit_at(&self, index: &BitIndex) -> u8
Get the bit at the given bit index. Returns a u8 instead of a bool to accommodate
operations such as bitshifts on the result, but this function should always return either 0 or 1.