pub struct StructLayout {
pub name: String,
pub total_size: usize,
pub align: usize,
pub fields: Vec<Field>,
pub source_file: Option<String>,
pub source_line: Option<u32>,
pub arch: &'static ArchConfig,
pub is_packed: bool,
pub is_union: bool,
}Expand description
One complete struct as read from DWARF or source and enriched by analysis.
Fields§
§name: String§total_size: usize§align: usize§fields: Vec<Field>§source_file: Option<String>§source_line: Option<u32>§arch: &'static ArchConfig§is_packed: bool§is_union: boolTrue when this layout was parsed from a C/C++ union declaration.
All fields share the same base offset (0); analysis suppresses reorder
and padding findings that do not apply to unions.
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 · 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 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