Type Alias mozjs_sys::jsapi::JSAddPropertyOp

source ·
pub type JSAddPropertyOp = Option<unsafe extern "C" fn(cx: *mut JSContext, obj: HandleObject, id: HandleId, v: HandleValue) -> 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.