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:

Associated Types

type AtomicInner: TraitBound { trait_: Path { path: "Sized", id: Id(12), args: None }, generic_params: [], modifier: None }

Temporary implementation detail.

Implementors