Trait AtomicPrimitive
unsafe trait AtomicPrimitive: Sized + Copy + Sealed
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 SelfSelfasSelf::AtomicInneror the reverse
Associated Types
type AtomicInner: TraitBound { trait_: Path { path: "Sized", id: Id(12), args: None }, generic_params: [], modifier: None }Temporary implementation detail.
Implementors
impl AtomicPrimitive for u8impl AtomicPrimitive for isizeimpl AtomicPrimitive for i16impl AtomicPrimitive for usizeimpl AtomicPrimitive for u16impl<T> AtomicPrimitive for *mut Timpl AtomicPrimitive for i32impl AtomicPrimitive for u32impl AtomicPrimitive for boolimpl AtomicPrimitive for i64impl AtomicPrimitive for i8impl AtomicPrimitive for u64