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