mozjs_sys::jsgc

Trait 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 Constants§

Required Associated Types§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RootKind for *mut BigInt

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

type Vtable = ()

source§

impl RootKind for *mut Symbol

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

type Vtable = ()

source§

impl RootKind for *mut JSFunction

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

type Vtable = ()

source§

impl RootKind for *mut JSObject

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

type Vtable = ()

source§

impl RootKind for *mut JSScript

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

type Vtable = ()

source§

impl RootKind for *mut JSString

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

type Vtable = ()

Implementors§

source§

impl RootKind for Value

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

type Vtable = ()

source§

impl RootKind for jsid

source§

const VTABLE: Self::Vtable = ()

source§

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

source§

type Vtable = ()

source§

impl<T: Rootable> RootKind for T

source§

const VTABLE: Self::Vtable = _

source§

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

source§

type Vtable = *const RootedVFTable