pub(crate) type DomRoot<T> = Root<Dom<T>>;
Expand description
A rooted reference to a DOM object.
Aliased Type§
struct DomRoot<T> { /* private fields */ }
Implementations
Source§impl<T> Root<Dom<T>>where
T: Castable,
impl<T> Root<Dom<T>>where
T: Castable,
Trait Implementations
Source§impl<T> Drop for Root<T>where
T: StableTraceObject,
impl<T> Drop for Root<T>where
T: StableTraceObject,
Source§impl<T> FromJSValConvertible for Root<Dom<T>>where
T: DomObject + IDLInterface,
impl<T> FromJSValConvertible for Root<Dom<T>>where
T: DomObject + IDLInterface,
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: Handle<'_, Value>,
_config: <Root<Dom<T>> as FromJSValConvertible>::Config,
) -> Result<ConversionResult<Root<Dom<T>>>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: Handle<'_, Value>, _config: <Root<Dom<T>> as FromJSValConvertible>::Config, ) -> Result<ConversionResult<Root<Dom<T>>>, ()>
Convert
val
to type Self
.
Optional configuration of type T
can be passed as the option
argument.
If it returns Err(())
, a JSAPI exception is pending.
If it returns Ok(Failure(reason))
, there is no pending JSAPI exception.Source§impl<T> MallocSizeOf for Root<Dom<T>>where
T: DomObject + MallocSizeOf,
impl<T> MallocSizeOf for Root<Dom<T>>where
T: DomObject + MallocSizeOf,
Source§fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.