Module jsgc

Source

Structs§

CustomAutoRooterVFTable
Methods for a CustomAutoRooter
Heap
Heap values encapsulate GC concerns of an on-heap reference to a JS object. This means that every reference to a JS object on heap must be realized through this structure.
Rooted
RootedBase
RootedVFTable
A vtable for use in RootedTraceable, which must be present for stack roots using RootKind::Traceable. The C++ tracing implementation uses a virtual trace function which is only present for C++ Rooted values that use the Traceable root kind.
StackGCVector
ValueArray
A fixed-size array of values, for use inside Rooted<>.

Traits§

GCMethods
A trait for types which can place appropriate GC barriers.
Initialize
Trait that provides a GC-safe default value for the given type, if one exists.
IntoHandle
Trait for things that can be converted to handles For any type T: IntoHandle we have an implementation of From<T> for MutableHandle<T::Target>. This is a way round the orphan rule.
IntoMutableHandle
RootKind
A trait for JS types that can be registered as roots.
Rootable
Marker trait that allows any type that implements the [trace::Traceable] trait to be used with the Rooted type.

Type Aliases§

RootedValueArray
RootedValueArray roots an internal fixed-size array of Values