pub trait MetaObj: Any {
// Required method
fn opaque(&self) -> bool;
// Provided method
fn on_access<'tcx>(&self) -> InterpResult<'tcx> { ... }
}Expand description
A trait for the synchronization metadata that can be attached to a memory location. Must not contain any provenance!
Required Methods§
Provided Methods§
Implementations§
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".