#[repr(C)]pub struct MemberInfo {
pub name: String,
pub bit_offset: u64,
pub ty: u32,
pub bitfield_width: u32,
pub repr_vtype: u32,
pub repr_signed: bool,
pub repr_leading_zeros: bool,
}Expand description
One struct/union member, crossed inside a slice for one fill_struct call. name is an owned String: the sink interns members into its own table, so the transient owned copy the walk allocates is copied on anyway.
Fields§
§name: StringThe member’s name.
bit_offset: u64Offset from the aggregate start, in bits.
ty: u32Walk-local handle of the member’s type.
bitfield_width: u32Bit width for a bitfield member (0 for an ordinary field).
repr_vtype: u32value_repr_t FRB_* value-type nibble, or 0 (FRB_UNK) when unset or outside the numeric subset idakit models.
repr_signed: boolFRB_SIGNED; meaningless when repr_vtype is 0.
repr_leading_zeros: boolFRB_LZERO; meaningless when repr_vtype is 0.
Trait Implementations§
Source§impl ExternType for MemberInfo
impl ExternType for MemberInfo
Auto Trait Implementations§
impl Freeze for MemberInfo
impl RefUnwindSafe for MemberInfo
impl Send for MemberInfo
impl Sync for MemberInfo
impl Unpin for MemberInfo
impl UnsafeUnpin for MemberInfo
impl UnwindSafe for MemberInfo
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