pub fn heap_size<T: GetSize>(value: &T) -> usize
Determines how many bytes the object occupies inside the heap.