pub trait Trace {
// Required method
fn trace(&self, tracer: &mut Tracer<'_>);
}Expand description
Types that may own Gc handles.
Implementations must visit every Gc field, directly or through another
type that implements Trace. Missing an edge makes the collector treat the
object as unreachable from that side, which only costs memory (a cycle that
is never reclaimed), never safety — but it is still a bug.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".