#[repr(C)]pub struct MemberInfo<'a> {
pub name: &'a str,
pub bit_offset: u64,
pub ty: u32,
pub bitfield_width: u32,
}Expand description
One struct/union member, a lifetime-generic shared struct whose name borrows a C++
stack temporary for the duration of one fill_struct call.
The name: &str compiles to rust::Str on the C++ side; passed inside a
rust::Slice<const MemberInfo>, it is the borrowed-name-in-array case with no owned-copy.
Fields§
§name: &'a strThe member’s name, borrowed for the call.
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).
Trait Implementations§
Source§impl<'a> ExternType for MemberInfo<'a>
impl<'a> ExternType for MemberInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for MemberInfo<'a>
impl<'a> RefUnwindSafe for MemberInfo<'a>
impl<'a> Send for MemberInfo<'a>
impl<'a> Sync for MemberInfo<'a>
impl<'a> Unpin for MemberInfo<'a>
impl<'a> UnsafeUnpin for MemberInfo<'a>
impl<'a> UnwindSafe for MemberInfo<'a>
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