pub unsafe trait AtomicInteger: Sync + Send {
type V;
// Required methods
fn new(v: Self::V) -> Self;
fn load(&self, order: Ordering) -> Self::V;
fn store(&self, val: Self::V, order: Ordering);
}Expand description
§Safety
Objects that implement this trait must consist exclusively of atomic types
from std::sync::atomic, except for
AtomicPtr<T> and
AtomicBool.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".