pub unsafe trait Traceable {
// Required method
unsafe fn trace(&self, trc: *mut JSTracer);
}Expand description
Types that can be traced.
This trait is unsafe; if it is implemented incorrectly, the GC may end up collecting objects that are still reachable.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".