pub unsafe trait AtomicPrimitive:
Sized
+ Copy
+ Sealed {
type Storage;
}🔬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.
Required Associated Types§
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.
Implementors§
Source§impl AtomicPrimitive for bool
Available on target_has_atomic_load_store=8 only.
impl AtomicPrimitive for bool
Available on
target_has_atomic_load_store=8 only.Source§impl AtomicPrimitive for i8
Available on target_has_atomic_load_store=8 only.
impl AtomicPrimitive for i8
Available on
target_has_atomic_load_store=8 only.Source§impl AtomicPrimitive for i16
Available on target_has_atomic_load_store=16 only.
impl AtomicPrimitive for i16
Available on
target_has_atomic_load_store=16 only.Source§impl AtomicPrimitive for i32
Available on target_has_atomic_load_store=32 only.
impl AtomicPrimitive for i32
Available on
target_has_atomic_load_store=32 only.Source§impl AtomicPrimitive for i64
Available on target_has_atomic_load_store=64 only.
impl AtomicPrimitive for i64
Available on
target_has_atomic_load_store=64 only.Source§impl AtomicPrimitive for isize
Available on target_has_atomic_load_store=ptr only.
impl AtomicPrimitive for isize
Available on
target_has_atomic_load_store=ptr only.Source§impl AtomicPrimitive for u8
Available on target_has_atomic_load_store=8 only.
impl AtomicPrimitive for u8
Available on
target_has_atomic_load_store=8 only.Source§impl AtomicPrimitive for u16
Available on target_has_atomic_load_store=16 only.
impl AtomicPrimitive for u16
Available on
target_has_atomic_load_store=16 only.Source§impl AtomicPrimitive for u32
Available on target_has_atomic_load_store=32 only.
impl AtomicPrimitive for u32
Available on
target_has_atomic_load_store=32 only.Source§impl AtomicPrimitive for u64
Available on target_has_atomic_load_store=64 only.
impl AtomicPrimitive for u64
Available on
target_has_atomic_load_store=64 only.Source§impl AtomicPrimitive for usize
Available on target_has_atomic_load_store=ptr only.
impl AtomicPrimitive for usize
Available on
target_has_atomic_load_store=ptr only.