Function script::dom::bindings::conversions::root_from_handleobject

source ยท
pub fn root_from_handleobject<T>(
    obj: HandleObject<'_>,
    cx: *mut JSContext,
) -> Result<Root<Dom<T>>, ()>
Expand description

Get a DomRoot<T> for a DOM object accessible from a HandleObject.