Trait proc_bitfield::BitRange
source · [−]pub trait BitRange<T> {
fn bit_range<const START: usize, const END: usize>(self) -> T;
fn set_bit_range<const START: usize, const END: usize>(
self,
value: T
) -> Self;
}
Expand description
A trait to read or modify a range of bits inside a value.
Required Methods
Read the given bit range inside self
as a value of type T
sourcefn set_bit_range<const START: usize, const END: usize>(self, value: T) -> Self
fn set_bit_range<const START: usize, const END: usize>(self, value: T) -> Self
Set the given bit range inside self
to a value of type T
.