pub struct StructReport {
pub struct_name: String,
pub source_file: Option<String>,
pub source_line: Option<u32>,
pub total_size: usize,
pub num_fields: usize,
pub num_holes: usize,
pub wasted_bytes: usize,
pub score: f64,
pub findings: Vec<Finding>,
pub is_repr_rust: bool,
pub uncertain_fields: Vec<String>,
}Fields§
§struct_name: String§source_file: Option<String>§source_line: Option<u32>§total_size: usize§num_fields: usizeNumber of data fields (excludes padding pseudo-fields).
num_holes: usizeNumber of byte-level padding gaps (holes) in the layout.
wasted_bytes: usize§score: f64§findings: Vec<Finding>§is_repr_rust: boolMirrors StructLayout::is_repr_rust. When true, findings describe
declared-order waste; the compiler may have already eliminated it.
uncertain_fields: Vec<String>Field names whose type size could not be accurately determined from
source alone (e.g. a qualified Go type like driver.Connector whose
package is not in the analyzed source set). When non-empty, padding
and reorder findings on this struct may be inaccurate.
Trait Implementations§
Source§impl Debug for StructReport
impl Debug for StructReport
Auto Trait Implementations§
impl Freeze for StructReport
impl RefUnwindSafe for StructReport
impl Send for StructReport
impl Sync for StructReport
impl Unpin for StructReport
impl UnsafeUnpin for StructReport
impl UnwindSafe for StructReport
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