Type Alias mozjs::jsapi::ScriptPrivateReferenceHook

source ·
pub type ScriptPrivateReferenceHook = Option<unsafe extern "C" fn(_: *const Value)>;
Expand description

Hooks called when references to a script private value are created or destroyed. This allows use of a reference counted object as the script private.

Aliased Type§

enum ScriptPrivateReferenceHook {
    None,
    Some(unsafe extern "C" fn(_: *const Value)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const Value))

Some value of type T.