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

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