Trait mimalloc2_rust::heap::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§
fn visitor( &mut self, heap: &mi_heap_t, area: &mi_heap_area_t, block: *mut c_void, size: usize ) -> bool
Provided Methods§
fn visit(&mut self, heap: &MiMallocHeap<T>)
Object Safety§
This trait is not object safe.