Type Alias script::dom::bindings::codegen::Bindings::TestBindingBinding::TestTypedefInterface
source · pub type TestTypedefInterface = Root<Dom<Blob>>;
Aliased Type§
struct TestTypedefInterface {
value: Dom<Blob>,
root_list: *const RootCollection,
}
Fields§
§value: Dom<Blob>
The value to root.
root_list: *const RootCollection
List that ensures correct dynamic root ordering
Implementations§
source§impl<T> Root<T>where
T: StableTraceObject + 'static,
impl<T> Root<T>where T: StableTraceObject + 'static,
Trait Implementations§
source§impl<T> Drop for Root<T>where
T: StableTraceObject,
impl<T> Drop for Root<T>where T: StableTraceObject,
source§impl<T: DomObject + IDLInterface> FromJSValConvertible for Root<Dom<T>>
impl<T: DomObject + IDLInterface> FromJSValConvertible for Root<Dom<T>>
source§unsafe fn from_jsval(
cx: *mut JSContext,
value: HandleValue<'_>,
_config: Self::Config
) -> Result<ConversionResult<Root<Dom<T>>>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: HandleValue<'_>, _config: Self::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.