Type Alias script::dom::bindings::import::module::jsapi::ClassObjectCreationOp

source ·
pub type ClassObjectCreationOp = Option<unsafe extern "C" fn(_: *mut JSContext, _: JSProtoKey) -> *mut JSObject>;
Expand description

Callback for the creation of constructor and prototype objects.

Aliased Type§

enum ClassObjectCreationOp {
    None,
    Some(unsafe extern "C" fn(_: *mut JSContext, _: JSProtoKey) -> *mut JSObject),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut JSContext, _: JSProtoKey) -> *mut JSObject)

Some value of type T.