pub struct BitIndex(/* private fields */);
Expand description
Index of a bit in a bitfield structure.
Implementations§
Trait Implementations§
source§impl BitMaskable for BitIndex
impl BitMaskable for BitIndex
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 BitIndex
impl PartialEq for BitIndex
impl Copy for BitIndex
impl Eq for BitIndex
impl StructuralPartialEq for BitIndex
Auto Trait Implementations§
impl Freeze for BitIndex
impl RefUnwindSafe for BitIndex
impl Send for BitIndex
impl Sync for BitIndex
impl Unpin for BitIndex
impl UnwindSafe for BitIndex
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