ClassObjectCreationOp

Type Alias 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§

pub 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.

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.