pub trait MemSize {
// Required method
fn mem_size(&self, flags: SizeFlags) -> usize;
}Expand description
A trait to compute recursively the overall size or capacity of a structure,
as opposed to the stack size returned by core::mem::size_of().
You can derive this trait with #[derive(MemSize)] if all the fields of
your type implement MemSize.