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

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§

source

fn unconditional_size_of(&self, ops: &mut MallocSizeOfOps) -> usize

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

Implementations on Foreign Types§

source§

impl<Impl: SelectorImpl> MallocUnconditionalSizeOf for Component<Impl>

source§

impl<Impl: SelectorImpl> MallocUnconditionalSizeOf for Selector<Impl>

source§

impl<Impl: SelectorImpl> MallocUnconditionalSizeOf for SelectorList<Impl>

source§

impl<T: MallocSizeOf> MallocUnconditionalSizeOf for Arc<T>

Implementors§