pub struct NativeTypeLayout {
pub name: String,
pub abi: String,
pub size: u32,
pub align: u32,
pub fields: Vec<NativeLayoutField>,
}Expand description
Runtime layout descriptor for one native type.
Fields§
§name: String§abi: String§size: u32§align: u32§fields: Vec<NativeLayoutField>Implementations§
Source§impl NativeTypeLayout
impl NativeTypeLayout
pub fn field(&self, name: &str) -> Option<&NativeLayoutField>
Trait Implementations§
Source§impl Clone for NativeTypeLayout
impl Clone for NativeTypeLayout
Source§fn clone(&self) -> NativeTypeLayout
fn clone(&self) -> NativeTypeLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NativeTypeLayout
impl RefUnwindSafe for NativeTypeLayout
impl Send for NativeTypeLayout
impl Sync for NativeTypeLayout
impl Unpin for NativeTypeLayout
impl UnsafeUnpin for NativeTypeLayout
impl UnwindSafe for NativeTypeLayout
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