pub trait HeapSpace {
// Required method
fn heap_space(&self) -> usize;
}
Expand description
A trait for objects that can report their memory usage on the heap
Required Methods§
Sourcefn heap_space(&self) -> usize
fn heap_space(&self) -> usize
The number of bytes allocated on the heap that this owns.