Type Alias mozjs_sys::jsapi::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§

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.