Function atomic_xor

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

Bitwise xor 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 the atomic types via the fetch_xor method. For example, AtomicBool::fetch_xor.