Atomics in Rust

More generally, see Atomics.

Atomics act as if they have interior mutability, namely they can be mutated through const-references.

Types

Rust has atomics for all the standard sizes of signed and unsigned integer, plus: