Expand description
Root scanning infrastructure for the GC.
The Trace trait is implemented by types that contain GC-managed pointers.
During the mark phase, the GC calls trace() on root objects to discover
all reachable heap pointers.
Traits§
- Trace
- Trait for types that can be traced by the GC.
Functions§
- trace_
heap_ slot - Trace a raw u64 that may be a heap pointer (for ValueSlot).
- trace_
nanboxed_ bits - Trace a NaN-boxed u64 value: if it’s heap-tagged, yield the raw pointer.
Type Aliases§
- Trace
Callback - Callback type for tracing — accepts raw pointers to GC-managed objects.