pub unsafe fn native_from_object<T>(
obj: *mut JSObject,
cx: *mut JSContext,
) -> Result<*const T, ()>where
T: DomObject + IDLInterface,Expand description
Get a *const T for a DOM object accessible from a JSObject.
ยงSafety
obj must point to a valid, non-null JS object. cx must point to a valid, non-null JS context.