Type Alias mozjs_sys::jsapi::JSGCCallback

source ·
pub type JSGCCallback = Option<unsafe extern "C" fn(cx: *mut JSContext, status: JSGCStatus, reason: GCReason, data: *mut c_void)>;

Aliased Type§

enum JSGCCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut JSContext, _: JSGCStatus, _: GCReason, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut JSContext, _: JSGCStatus, _: GCReason, _: *mut c_void))

Some value of type T.