Skip to main content

GC_toggleref_func

Type Alias GC_toggleref_func 

Source
pub type GC_toggleref_func = Option<unsafe extern "C" fn(arg1: *mut c_void) -> GC_ToggleRefStatus>;
Expand description

The callback is to decide (return) the new state of a given object. Invoked by the collector for all objects registered for “toggle-refs” processing. Invoked with the allocator lock held but the world is running.

Aliased Type§

pub enum GC_toggleref_func {
    None,
    Some(unsafe extern "C" fn(*mut c_void) -> u32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void) -> u32)

Some value of type T.