mozjs::jsapi::JS

Type Alias RootedId

Source
pub type RootedId = Rooted<PropertyKey>;

Aliased Type§

struct RootedId {
    pub vtable: (),
    pub base: RootedBase,
    pub ptr: MaybeUninit<PropertyKey>,
}

Fields§

§vtable: ()§base: RootedBase§ptr: MaybeUninit<PropertyKey>

The rooted value

This will be initialied iff there is a RootedGuard for this Rooted

Implementations

Source§

impl<T> Rooted<T>
where T: RootKind,

Source

pub fn new_unrooted() -> Rooted<T>

Source

pub unsafe fn add_to_root_stack(&mut self, cx: *mut JSContext)

Source

pub unsafe fn remove_from_root_stack(&mut self)