pub trait Trace: Send + Sync + 'static {
const MAY_CONTAIN_REFERENCES: bool;
// Required method
fn trace(&self, tracer: &mut Tracer<'_>);
}Expand description
A type that can find and mark any references it has.
Required Associated Constants§
sourceconst MAY_CONTAIN_REFERENCES: bool
const MAY_CONTAIN_REFERENCES: bool
If true, this type may contain references and should have its trace()
function invoked during the collector’s “mark” phase.
Required Methods§
Object Safety§
This trait is not object safe.