Method lrs::atomic::AtomicI8::exchange

Replaces the value in the atomic integer by a new one with sequentially consistent semantics.

Syntax

impl AtomicI8 {
    fn exchange(&self, val: i8) -> i8
}

Arguments

NameDescription
val

The value to be stored in the atomic integer.

Return value

Returns the previous value.