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§
None
No value.
Some(unsafe extern "C" fn(*mut GCContext, *mut JSObject))
Some value of type T.
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.