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

source§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

impl RootKind for *mut Symbol

source§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

impl RootKind for *mut JSFunction

source§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

impl RootKind for *mut JSObject

source§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

impl RootKind for *mut JSScript

source§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

impl RootKind for *mut JSString

source§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

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

Implementors§

source§

impl RootKind for Value

source§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

impl RootKind for jsid

source§

type Vtable = ()

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

impl<T: Rootable> RootKind for T

source§

type Vtable = *const RootedVFTable

source§

const VTABLE: Self::Vtable = _

source§

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