Method lrs::atomic::AtomicI16::sub

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

Syntax

impl AtomicI16 {
    fn sub(&self, val: i16) -> i16
}

Arguments

NameDescription
val

The value to be subtracted from the integer.

Return value

Returns the old value.