Trait graphannis_malloc_size_of::MallocUnconditionalSizeOf[][src]

pub trait MallocUnconditionalSizeOf {
    fn unconditional_size_of(&self, ops: &mut MallocSizeOfOps) -> usize;
}

Like MallocSizeOf, but with a different name so it cannot be used accidentally with derive(MallocSizeOf). For use with types like Rc and Arc when appropriate (e.g. when measuring a "primary" reference).

Required Methods

Measure the heap usage of all heap-allocated descendant structures, but not the space taken up by the value itself.

Implementors