pub unsafe trait Trace: 'static {
// Required method
unsafe fn visit_children(&self, visitor: fn(OpaqueGcPtr));
// Provided method
unsafe fn finalize(&mut self) { ... }
}
Expand description
§Safety
This trait should not be manually implemented!
Required Methods§
Sourceunsafe fn visit_children(&self, visitor: fn(OpaqueGcPtr))
unsafe fn visit_children(&self, visitor: fn(OpaqueGcPtr))
§Safety
This function may ONLY be called by the garbage collector! Calling this function ANYWHERE ELSE is a RACE CONDITION!
DO NOT CALL THIS FUNCTION!!