Trait script::JSTraceable
source · pub 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.