pub struct StructFieldLayout {
pub name: String,
pub offset: u32,
pub size: u32,
pub field_type: FieldType,
}Expand description
Layout information for a single field within a struct.
Fields§
§name: StringField name (e.g. "x").
offset: u32Byte offset from the start of the struct (including header).
size: u32Size of this field in bytes.
field_type: FieldTypeThe primitive type of this field.
Trait Implementations§
Source§impl Clone for StructFieldLayout
impl Clone for StructFieldLayout
Source§fn clone(&self) -> StructFieldLayout
fn clone(&self) -> StructFieldLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructFieldLayout
impl Debug for StructFieldLayout
Source§impl PartialEq for StructFieldLayout
impl PartialEq for StructFieldLayout
Source§fn eq(&self, other: &StructFieldLayout) -> bool
fn eq(&self, other: &StructFieldLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StructFieldLayout
impl StructuralPartialEq for StructFieldLayout
Auto Trait Implementations§
impl Freeze for StructFieldLayout
impl RefUnwindSafe for StructFieldLayout
impl Send for StructFieldLayout
impl Sync for StructFieldLayout
impl Unpin for StructFieldLayout
impl UnsafeUnpin for StructFieldLayout
impl UnwindSafe for StructFieldLayout
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