atomic_or in std::intrinsics - Rust
Description: Bitwise or 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.

## atomic_or

# Function atomic_or

Source

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

🔬This is a nightly-only experimental API. (`core_intrinsics`)
Expand description

Bitwise or 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_or` method. For example, `AtomicBool::fetch_or`.