Trait HeapSpace

Source
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§

Source

fn heap_space(&self) -> usize

The number of bytes allocated on the heap that this owns.

Implementors§