mozjs_sys

Module jsgc

Source

Structs§

  • Methods for a CustomAutoRooter
  • 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.
  • 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.
  • A fixed-size array of values, for use inside Rooted<>.

Traits§

  • A trait for types which can place appropriate GC barriers.
  • Trait that provides a GC-safe default value for the given type, if one exists.
  • 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.
  • A trait for JS types that can be registered as roots.
  • Marker trait that allows any type that implements the [trace::Traceable] trait to be used with the Rooted type.

Type Aliases§