Skip to main content

MemberInfo

Struct MemberInfo 

Source
#[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: String

The member’s name.

§bit_offset: u64

Offset from the aggregate start, in bits.

§ty: u32

Walk-local handle of the member’s type.

§bitfield_width: u32

Bit width for a bitfield member (0 for an ordinary field).

§repr_vtype: u32

value_repr_t FRB_* value-type nibble, or 0 (FRB_UNK) when unset or outside the numeric subset idakit models.

§repr_signed: bool

FRB_SIGNED; meaningless when repr_vtype is 0.

§repr_leading_zeros: bool

FRB_LZERO; meaningless when repr_vtype is 0.

Trait Implementations§

Source§

impl ExternType for MemberInfo

Source§

type Kind = Trivial

Source§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.