Type Alias mozjs_sys::jsapi::JS::Rooted

source ·
pub type Rooted<T> = Rooted<T>;

Aliased Type§

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

Fields§

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

Implementations§

source§

impl<T: RootKind> Rooted<T>

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)