[−][src]Trait rust_bitfield::Bit
A trait to get or set a single bit.
This trait is implemented for all type that implement BitRange<T>
.
Required methods
fn bit(&self, bit: usize) -> bool
Get a single bit.
fn set_bit(&mut self, bit: usize, value: bool)
Set a single bit.