[−][src]Trait tag_vec::BitField
A trait for a type that can work as a bitfield.
Required methods
fn empty() -> Self
Creates a bitfield with no bits set
fn set_bit(&mut self, n: usize, state: bool)
Sets a bit. Assumes that n is less than n_bits
fn get_bit(&self, n: usize) -> bool
Gets a bit. Assumes that n is less than n_bits
fn n_bits() -> usize
Returns the number of bits.