pub(crate) unsafe trait JSTraceable {
// Required method
unsafe fn trace(&self, trc: *mut JSTracer);
}Expand description
A trait to allow tracing (only) DOM objects. 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".