pub struct StructLayout {
pub name: String,
pub total_size: u32,
pub fields: Vec<StructFieldLayout>,
}Expand description
Complete layout of a repr(C) struct including its v2 heap header.
Fields§
§name: StringType name (e.g. "Point").
total_size: u32Total size of the struct in bytes, including header and tail padding. Padded to the struct’s overall alignment.
fields: Vec<StructFieldLayout>Per-field layout information, in declaration order.
Implementations§
Trait Implementations§
Source§impl Clone for StructLayout
impl Clone for StructLayout
Source§fn clone(&self) -> StructLayout
fn clone(&self) -> StructLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructLayout
impl Debug for StructLayout
Source§impl PartialEq for StructLayout
impl PartialEq for StructLayout
Source§fn eq(&self, other: &StructLayout) -> bool
fn eq(&self, other: &StructLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StructLayout
impl StructuralPartialEq for StructLayout
Auto Trait Implementations§
impl Freeze for StructLayout
impl RefUnwindSafe for StructLayout
impl Send for StructLayout
impl Sync for StructLayout
impl Unpin for StructLayout
impl UnsafeUnpin for StructLayout
impl UnwindSafe for StructLayout
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