pub type RootedObject = Rooted<*mut JSObject>;Expand description
Local variable of type T whose value is always rooted. This is typically
used for local variables, or for non-rooted values being passed to a
function that requires a handle, e.g. Foo(Root
If you want to add additional methods to Rooted for a specific
specialization, define a RootedOperations
Aliased Type§
#[repr(C)]pub struct RootedObject {
pub vtable: (),
pub base: RootedBase,
pub data: *mut JSObject,
}Fields§
§vtable: ()§base: RootedBase§data: *mut JSObjectLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes