Trait parity_util_mem::MallocShallowSizeOf[][src]

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

Trait for measuring the “shallow” heap usage of a container.

Required methods

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.

Loading content...

Implementations on Foreign Types

impl<T: ?Sized> MallocShallowSizeOf for Box<T>[src]

impl<T> MallocShallowSizeOf for Vec<T>[src]

impl<T> MallocShallowSizeOf for VecDeque<T>[src]

impl<T, S> MallocShallowSizeOf for HashSet<T, S> where
    T: Eq + Hash,
    S: BuildHasher
[src]

impl<K, V, S> MallocShallowSizeOf for HashMap<K, V, S>[src]

impl<K, V> MallocShallowSizeOf for BTreeMap<K, V>[src]

impl<T> MallocShallowSizeOf for BTreeSet<T>[src]

impl<K, V, S> MallocShallowSizeOf for HashMap<K, V, S>[src]

Loading content...

Implementors

Loading content...