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

source ·
pub type JSAddPropertyOp = Option<unsafe extern "C" fn(_: *mut JSContext, _: Handle<*mut JSObject>, _: Handle<PropertyKey>, _: Handle<Value>) -> bool>;
Expand description

Add a property named by id to obj.

Aliased Type§

enum JSAddPropertyOp {
    None,
    Some(unsafe extern "C" fn(_: *mut JSContext, _: Handle<*mut JSObject>, _: Handle<PropertyKey>, _: Handle<Value>) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut JSContext, _: Handle<*mut JSObject>, _: Handle<PropertyKey>, _: Handle<Value>) -> bool)

Some value of type T.