pub trait BitRange<T> {
// Required methods
fn bit_range(&self, msb: usize, lsb: usize) -> T;
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T);
}
Expand description
A trait to get or set ranges of bits.
Required Methods§
sourcefn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.