pub struct Field {
pub offset: u64,
pub size: u64,
}
Expand description
A field within a structure.
Field
encapsulates the offset and size of a field, enabling type-safe
access to structure members. It’s primarily used with the offsets!
macro
for defining structure layouts and accessing their fields.
Fields§
§offset: u64
The offset of the field from the beginning of the structure, in bytes.
size: u64
The size of the field, in bytes.
Trait Implementations§
impl Copy for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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
)