parity_util_mem

Function malloc_size

Source
pub fn malloc_size<T: MallocSizeOf + ?Sized>(t: &T) -> usize
Expand description

Heap size of structure.

Structure can be anything that implements MallocSizeOf.