pub struct Bitfield {
pub offset: u64,
pub size: u64,
pub bit_position: u64,
pub bit_length: u64,
}
Expand description
A bitfield within a structure.
Bitfield
provides information about the offset, size, bit position, and
bit length of a bitfield member. It extends the functionality of Field
by allowing access to individual bits within a field.
Fields§
§offset: u64
The offset of the bitfield from the beginning of the structure, in bytes.
size: u64
The size of the underlying field containing the bitfield, in bytes.
bit_position: u64
The starting bit position of the bitfield within the underlying field.
bit_length: u64
The length of the bitfield, in bits.
Implementations§
Trait Implementations§
impl Copy 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)