pub struct Report {
pub structs: Vec<StructReport>,
pub total_structs: usize,
pub total_wasted_bytes: usize,
pub analyzed_paths: Vec<String>,
pub embedded_in: HashMap<String, Vec<String>>,
}Fields§
§structs: Vec<StructReport>§total_structs: usize§total_wasted_bytes: usize§analyzed_paths: Vec<String>Paths that were analyzed to produce this report (populated by the CLI).
embedded_in: HashMap<String, Vec<String>>Maps each struct name to the list of outer struct names that embed it as a field. Used to surface “fixing this struct also shrinks Foo/Bar” hints in the output. Omitted from JSON serialisation (internal only).
Implementations§
Source§impl Report
impl Report
Sourcepub fn from_layouts(layouts: &[StructLayout]) -> Report
pub fn from_layouts(layouts: &[StructLayout]) -> Report
Run all analysis passes over layouts and assemble the full report.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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