pub unsafe trait AtomicPrimitive:
    Sized
    + Copy
    + Sealed {
    type AtomicInner;
}๐ฌThis is a nightly-only experimental API. (
atomic_internals)Expand description
A marker trait for primitive types which can be modified atomically.
This is an implementation detail for Atomic<T> which may disappear or be replaced at any time.
ยงSafety
Types implementing this trait must be primitives that can be modified atomically.
The associated Self::AtomicInner type must have the same size and bit validity as Self,
but may have a higher alignment requirement, so the following transmutes are sound:
- &mut Self::AtomicInneras- &mut Self
- Selfas- Self::AtomicInneror the reverse
Required Associated Typesยง
Sourcetype AtomicInner
 ๐ฌThis is a nightly-only experimental API. (atomic_internals)
type AtomicInner
atomic_internals)Temporary implementation detail.
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.