Type Alias JSFinalizeOp

Source
pub type JSFinalizeOp = Option<unsafe extern "C" fn(gcx: *mut GCContext, obj: *mut JSObject)>;
Expand description

Finalize obj, which the garbage collector has determined to be unreachable from other live objects or from GC roots. Obviously, finalizers must never store a reference to obj.

Aliased Type§

pub enum JSFinalizeOp {
    None,
    Some(unsafe extern "C" fn(*mut GCContext, *mut JSObject)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut GCContext, *mut JSObject))

Some value of type T.