[−][src]Trait packing::Bit
Trait signifying a single bit in a byte. 7 = most significant bit, 0 = least significant bit
Associated Constants
const HEAD_MASK: u8
The mask used to discard bits before this bit (i.e. if this bit is 5, ANDing this mask with a u8 will ensure bits 7 and 6 are 0.
const BIT_MASK: u8
The mask used to extract the single bit from a byte
const TAIL_MASK: u8
The mask used to discard bits after this bit (i.e. if this bit is 5, ANDing this mask with a u8 will ensure bits 4 to 0 are 0