pub struct BitRange { /* private fields */ }
Expand description
Range of bits in a bitfield structure.
Implementations§
Trait Implementations§
source§impl BitMaskable for BitRange
impl BitMaskable for BitRange
source§fn negative_byte_mask(self) -> u8
fn negative_byte_mask(self) -> u8
Return a ‘negative’ mask (that is, the only bit that is UNset is the
one corresponding to this bit) for this bit in its byte within the field.
source§fn positive_byte_mask(self) -> u8
fn positive_byte_mask(self) -> u8
Return a ‘positive’ mask (that is, the only bit that is set is the
one corresponding to this bit) for this bit in its byte within the field.
source§fn lo_bit_index(self) -> u8
fn lo_bit_index(self) -> u8
Return the index of this bit within its byte within the field (i.e.
the left-shift of this bit)
source§impl PartialEq for BitRange
impl PartialEq for BitRange
impl Copy for BitRange
impl Eq for BitRange
impl StructuralPartialEq for BitRange
Auto Trait Implementations§
impl Freeze for BitRange
impl RefUnwindSafe for BitRange
impl Send for BitRange
impl Sync for BitRange
impl Unpin for BitRange
impl UnwindSafe for BitRange
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more