Method lrs::atomic::AtomicU8::sub

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

Syntax

impl AtomicU8 {
    fn sub(&self, val: u8) -> u8
}

Arguments

NameDescription
val

The value to be subtracted from the integer.

Return value

Returns the old value.