Trait memory_db::MemTracker
source · pub trait MemTracker<T> {
fn on_remove(&mut self, _value: &T) { ... }
fn on_insert(&mut self, _value: &T) { ... }
fn on_clear(&mut self) { ... }
fn get_size(&self) -> usize { ... }
}
Expand description
Used to implement incremental evaluation of MallocSizeOf
for a collection.