pub type JSObjectDeletePropertyCallback = Option<unsafe extern "C" fn(ctx: JSContextRef, object: JSObjectRef, propertyName: JSStringRef, exception: *mut JSValueRef) -> bool>;
Expand description

@typedef JSObjectDeletePropertyCallback @abstract The callback invoked when deleting a property. @param ctx The execution context to use. @param object The JSObject in which to delete the property. @param propertyName A JSString containing the name of the property to delete. @param exception A pointer to a JSValueRef in which to return an exception, if any. @result true if propertyName was successfully deleted, otherwise false. @discussion If you named your function DeleteProperty, you would declare it like this:

bool DeleteProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);

If this function returns false, the delete request forwards to object’s statically declared properties, then its parent class chain (which includes the default object class).

Aliased Type§

enum JSObjectDeletePropertyCallback {
    None,
    Some(unsafe extern "C" fn(_: *const OpaqueJSContext, _: *mut OpaqueJSValue, _: *mut OpaqueJSString, _: *mut *const OpaqueJSValue) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const OpaqueJSContext, _: *mut OpaqueJSValue, _: *mut OpaqueJSString, _: *mut *const OpaqueJSValue) -> bool)

Some value of type T.