pub struct FieldDef {
pub name: &'static str,
pub field_type: ArgType,
pub offset: u16,
pub size: u16,
pub enum_range: Option<(u8, u8)>,
}Expand description
Field definition
Fields§
§name: &'static strField name
field_type: ArgTypeField type
offset: u16Offset in binary layout
size: u16Size in bytes
enum_range: Option<(u8, u8)>For enum types: valid range (min, max)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldDef
impl RefUnwindSafe for FieldDef
impl Send for FieldDef
impl Sync for FieldDef
impl Unpin for FieldDef
impl UnsafeUnpin for FieldDef
impl UnwindSafe for FieldDef
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