pub struct BitField {
pub bit_offset: u16,
pub bit_length: u16,
pub byte_order: ByteOrder,
}Expand description
Bitfield metadata describing a sub-range of a register payload.
Fields§
§bit_offset: u16Starting bit offset within the interpreted register value.
bit_length: u16Number of bits covered by the field.
byte_order: ByteOrderByte order used when interpreting the enclosing register.
Trait Implementations§
impl Copy for BitField
impl Eq for BitField
impl StructuralPartialEq for BitField
Auto Trait Implementations§
impl Freeze for BitField
impl RefUnwindSafe for BitField
impl Send for BitField
impl Sync for BitField
impl Unpin for BitField
impl UnwindSafe for BitField
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