mozjs_sys::jsapi::JS

Type Alias Rooted

Source
pub type Rooted<T> = Rooted<T>;

Aliased Type§

struct Rooted<T> {
    pub vtable: <T as RootKind>::Vtable,
    pub base: RootedBase,
    pub data: T,
}

Fields§

§vtable: <T as RootKind>::Vtable§base: RootedBase§data: T

Implementations§

Source§

impl<T: RootKind> Rooted<T>

Source

pub fn new_unrooted(initial: T) -> Rooted<T>

Source

pub unsafe fn add_to_root_stack(this: *mut Self, cx: *mut JSContext)

Source

pub unsafe fn remove_from_root_stack(&mut self)