pub trait MemoryReport: Sized {
const ALLOC: bool = false;
const CHILD: bool = false;
// Provided methods
fn direct() -> usize { ... }
fn indirect(&self) -> usize { ... }
fn children(&self) -> usize { ... }
}Provided Associated Constants§
Provided Methods§
Sourcefn direct() -> usize
fn direct() -> usize
Reports the memory innate to the struct.
This is equivalent to core::mem::size_of::<Self>().
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.