Trait bitmac::bit_access::BitAccess
source · [−]pub trait BitAccess: Sealed {
fn set(&self, byte: u8, bit_idx: usize, state: bool) -> u8;
fn get(&self, byte: u8, bit_idx: usize) -> bool;
}
Required Methods
Changes bit state. bit_idx
is guaranteed to be 0..=7
.