Sealed

Trait Sealed 

Source
pub trait Sealed:
    RootKind
    + Copy
    + Sized {
    const GC_TYPE: GCType;

    // Required method
    fn alloc(arena: &RootedArena, root: Rooted<Self>) -> &mut Rooted<Self>;
}

Required Associated Constants§

Required Methods§

Source

fn alloc(arena: &RootedArena, root: Rooted<Self>) -> &mut Rooted<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Sealed for *mut BigInt

Source§

const GC_TYPE: GCType = GCType::BigInt

Source§

fn alloc( arena: &RootedArena, root: Rooted<*mut BigInt>, ) -> &mut Rooted<*mut BigInt>

Source§

impl Sealed for *mut Symbol

Source§

const GC_TYPE: GCType = GCType::Symbol

Source§

fn alloc( arena: &RootedArena, root: Rooted<*mut Symbol>, ) -> &mut Rooted<*mut Symbol>

Source§

impl Sealed for *mut JSFunction

Source§

const GC_TYPE: GCType = GCType::Function

Source§

fn alloc( arena: &RootedArena, root: Rooted<*mut JSFunction>, ) -> &mut Rooted<*mut JSFunction>

Source§

impl Sealed for *mut JSObject

Source§

const GC_TYPE: GCType = GCType::Object

Source§

fn alloc( arena: &RootedArena, root: Rooted<*mut JSObject>, ) -> &mut Rooted<*mut JSObject>

Source§

impl Sealed for *mut JSScript

Source§

const GC_TYPE: GCType = GCType::Script

Source§

fn alloc( arena: &RootedArena, root: Rooted<*mut JSScript>, ) -> &mut Rooted<*mut JSScript>

Source§

impl Sealed for *mut JSString

Source§

const GC_TYPE: GCType = GCType::String

Source§

fn alloc( arena: &RootedArena, root: Rooted<*mut JSString>, ) -> &mut Rooted<*mut JSString>

Source§

impl Sealed for PropertyDescriptor

Source§

const GC_TYPE: GCType = GCType::PropertyDescriptor

Source§

fn alloc( arena: &RootedArena, root: Rooted<PropertyDescriptor>, ) -> &mut Rooted<PropertyDescriptor>

Source§

impl Sealed for PropertyKey

Source§

const GC_TYPE: GCType = GCType::PropertyKey

Source§

fn alloc( arena: &RootedArena, root: Rooted<PropertyKey>, ) -> &mut Rooted<PropertyKey>

Source§

impl Sealed for JSVal

Source§

const GC_TYPE: GCType = GCType::Value

Source§

fn alloc(arena: &RootedArena, root: Rooted<JSVal>) -> &mut Rooted<JSVal>

Implementors§