Trait mozjs_sys::jsgc::RootKind

source ·
pub trait RootKind {
    type Vtable;

    const VTABLE: Self::Vtable;
    const KIND: RootKind;
}
Expand description

A trait for JS types that can be registered as roots.

Required Associated Types§

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RootKind for *mut BigInt

§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

const KIND: RootKind = JS::RootKind::BigInt

source§

impl RootKind for *mut Symbol

§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

const KIND: RootKind = JS::RootKind::Symbol

source§

impl RootKind for *mut JSFunction

§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

const KIND: RootKind = JS::RootKind::Object

source§

impl RootKind for *mut JSObject

§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

const KIND: RootKind = JS::RootKind::Object

source§

impl RootKind for *mut JSScript

§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

const KIND: RootKind = JS::RootKind::Script

source§

impl RootKind for *mut JSString

§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

const KIND: RootKind = JS::RootKind::String

Implementors§

source§

impl RootKind for Value

§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

const KIND: RootKind = JS::RootKind::Value

source§

impl RootKind for jsid

§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

const KIND: RootKind = JS::RootKind::Id

source§

impl<T: TraceableTrace> RootKind for T

§

type Vtable = *const RootedVFTable

source§

const VTABLE: Self::Vtable = _

source§

const KIND: RootKind = JS::RootKind::Traceable