pub struct Field {
pub id: u32,
pub offset: usize,
pub scalar: Scalar,
}Expand description
One explicitly identified field in a repr(C) scalar declaration.
Fields§
§id: u32Owner-assigned field identity, stable across declaration reordering.
offset: usizeCompiler-established byte offset in the concrete repr(C) payload.
scalar: ScalarConcrete scalar kind; equal offsets or record sizes do not imply compatibility.
Trait Implementations§
impl Copy for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Forget for Field
impl Freeze for Field
impl Move for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin 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