pub trait Trackable {
// Required methods
fn get_heap_ptr(&self) -> Option<usize>;
fn get_type_name(&self) -> &'static str;
}
Expand description
Trait for types that can be tracked by the memory tracker.
Required Methods§
Sourcefn get_heap_ptr(&self) -> Option<usize>
fn get_heap_ptr(&self) -> Option<usize>
Get the pointer to the heap allocation for this value.
Sourcefn get_type_name(&self) -> &'static str
fn get_type_name(&self) -> &'static str
Get the type name for this value.