Function atomic_nand

pub const unsafe fn atomic_nand<T: Copy, U: Copy, const ORD: AtomicOrdering>(dst: *mut T, src: U) -> T

Bitwise nand with the current value, returning the previous value. T must be an integer or pointer type. U must be the same as T if that is an integer type, or usize if T is a pointer type.

Safety

This is equivalent to Atomic<T>::from_ptr followed by Atomic<T>::fetch_nand. Refer to the documentation of Atomic<T>::from_ptr for safety requirements.

The stabilized version of this intrinsic is available on the atomic types via the fetch_nand method. For example, AtomicBool::fetch_nand.