Method lrs::atomic::AtomicI8::sub

Subtracts a value from the atomic integer with sequentially consistent semantics.

Syntax

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

Arguments

NameDescription
val

The value to be subtracted from the integer.

Return value

Returns the old value.