Skip to main content

HeapSize

Trait HeapSize 

Source
pub trait HeapSize {
    // Required method
    fn heap_size(&self, callback: impl FnMut(usize, usize));
}
Expand description

A container that can report the heap allocations backing it.

Required Methods§

Source

fn heap_size(&self, callback: impl FnMut(usize, usize))

Calls callback(size, capacity), in bytes, once per allocation backing self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<C: Columnar> HeapSize for Coltainer<C>

Source§

fn heap_size(&self, callback: impl FnMut(usize, usize))

Implementors§