Type Alias mozjs_sys::jsapi::JSPreWrapCallback

source ·
pub type JSPreWrapCallback = Option<unsafe extern "C" fn(arg1: *mut JSContext, arg2: HandleObject, arg3: HandleObject, arg4: HandleObject, arg5: HandleObject, arg6: MutableHandleObject)>;
Expand description

Callback used by the wrap hook to ask the embedding to prepare an object for wrapping in a context. This might include unwrapping other wrappers or even finding a more suitable object for the new compartment. If |origObj| is non-null, then it is the original object we are going to swap into during a transplant.

Aliased Type§

enum JSPreWrapCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut JSContext, _: Handle<*mut JSObject>, _: Handle<*mut JSObject>, _: Handle<*mut JSObject>, _: Handle<*mut JSObject>, _: MutableHandle<*mut JSObject>)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut JSContext, _: Handle<*mut JSObject>, _: Handle<*mut JSObject>, _: Handle<*mut JSObject>, _: Handle<*mut JSObject>, _: MutableHandle<*mut JSObject>))

Some value of type T.