Trait HeapVisitor

Source
pub trait HeapVisitor<VisitorName, T: Deref<Target = *mut mi_heap_t>>
where Self: Sized,
{ // Required method fn visitor( &mut self, heap: &mi_heap_t, area: &mi_heap_area_t, block: *mut c_void, size: usize, ) -> bool; // Provided method fn visit(&mut self, heap: &MiMallocHeap<T>) { ... } }
Expand description

A custom function which visits the Heap

Required Methods§

Source

fn visitor( &mut self, heap: &mi_heap_t, area: &mi_heap_area_t, block: *mut c_void, size: usize, ) -> bool

Provided Methods§

Source

fn visit(&mut self, heap: &MiMallocHeap<T>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§