Type Alias libmimalloc_sys::mi_block_visit_fun

source ·
pub type mi_block_visit_fun = Option<unsafe extern "C" fn(heap: *const mi_heap_t, area: *const mi_heap_area_t, block: *mut c_void, block_size: usize, arg: *mut c_void) -> bool>;
Expand description

Visitor function passed to mi_heap_visit_blocks

Should return true to continue, and false to stop visiting (i.e. break)

This function is always first called for every area with block as a null pointer. If visit_all_blocks was true, the function is then called for every allocated block in that area.

Aliased Type§

enum mi_block_visit_fun {
    None,
    Some(unsafe extern "C" fn(_: *const mi_heap_t, _: *const mi_heap_area_t, _: *mut c_void, _: usize, _: *mut c_void) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const mi_heap_t, _: *const mi_heap_area_t, _: *mut c_void, _: usize, _: *mut c_void) -> bool)

Some value of type T.