pub type JSFunToStringOp = Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, bool) -> *mut JSString>;Expand description
The type of ObjectOps::funToString. This callback allows an object to provide a custom string to use when Function.prototype.toString is invoked on that object. A null return value means OOM.
Aliased Type§
pub enum JSFunToStringOp {
None,
Some(unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, bool) -> *mut JSString),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, bool) -> *mut JSString)
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.