pub trait Atomic {
type Value: Copy + PartialEq;
// Required methods
fn load(&self, ordering: Ordering) -> Self::Value;
fn compare_exchange_weak(
&self,
current: Self::Value,
new: Self::Value,
success: Ordering,
failure: Ordering,
) -> Result<Self::Value, Self::Value>;
}Expand description
An atomic type.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".