Method lrs::atomic::AtomicI16::min

Replaces the value in the atomic integer by the minimum of the current value and a given value with sequentially consistent semantics.

Syntax

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

Arguments

NameDescription
val

The value that will be compared to the integer.

Return value

Returns the old value.