Type Alias mozjs_sys::jsapi::JS::RootedValue

source ·
pub type RootedValue = Rooted<Value>;
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(cx, x)).

If you want to add additional methods to Rooted for a specific specialization, define a RootedOperations specialization containing them.

Aliased Type§

struct RootedValue {
    pub vtable: (),
    pub base: RootedBase,
    pub ptr: Value,
}

Fields§

§vtable: ()§base: RootedBase§ptr: Value