atomic_nand in std::intrinsics - Rust (original) (raw)
Function atomic_nand
pub unsafe fn atomic_nand<T, U, const ORD: AtomicOrdering>(
dst: *mut T,
src: U,
) -> T
where
T: Copy,
U: Copy,
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description
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.
The stabilized version of this intrinsic is available on theAtomicBool type via the fetch_nand method. For example, AtomicBool::fetch_nand.