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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.