Trait tetsy_util_mem::MallocShallowSizeOf [−][src]
pub trait MallocShallowSizeOf { fn shallow_size_of(&self, ops: &mut MallocSizeOfOps) -> usize; }
Expand description
Trait for measuring the “shallow” heap usage of a container.
Required methods
fn shallow_size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
fn shallow_size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]Measure the heap usage of immediate heap-allocated descendant structures, but not the space taken up by the value itself. Anything beyond the immediate descendants must be measured separately, using iteration.