Module mozjs_sys::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 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.
  • Rooted<T> with a T that uses the Traceable RootKind uses dynamic dispatch on the C++ side for custom tracing. This trait provides trace logic via a vtable when creating a Rust instance of the object.

Type Aliases§