Function script::dom::bindings::conversions::native_from_handlevalue
source ยท pub fn native_from_handlevalue<T>(
v: HandleValue<'_>,
cx: *mut JSContext,
) -> Result<*const T, ()>where
T: DomObject + IDLInterface,
Expand description
Get a *const T
for a DOM object accessible from a HandleValue
.
Caller is responsible for throwing a JS exception if needed in case of error.