Struct lrs::atomic::AtomicI8

An atomic integer wrapper.

Syntax

struct AtomicI8 {
    /* private fields */
}

Static methods

NameDescription
new

Creates a new atomic integer.

wrap

Methods

ReceiverNameDescription
&selfadd

Adds a value to the atomic integer with sequentially consistent semantics.

&selfadd_acquire

Adds a value to the atomic integer with acquire semantics.

&selfadd_acquire_release

Adds a value to the atomic integer with acquire-release semantics.

&selfadd_release

Adds a value to the atomic integer with release semantics.

&selfadd_weak

Adds a value to the atomic integer with relaxed ordering guarantees.

&selfand

Performs a binary and operation on the atomic integer with sequentially consistent semantics.

&selfand_acquire

Performs a binary and operation on the atomic integer with acquire semantics.

&selfand_acquire_release

Performs a binary and operation on the atomic integer with acquire-release semantics.

&selfand_release

Performs a binary and operation on the atomic integer with release semantics.

&selfand_weak

Performs a binary and operation on the atomic integer with relaxed ordering guarantees.

&selfcompare_exchange

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

&selfcompare_exchange_acquire

Conditionally replaces the value in the atomic integer by a new one with acquire semantics.

&selfcompare_exchange_acquire_release

Conditionally replaces the value in the atomic integer by a new one with acquire-release semantics.

&selfcompare_exchange_release

Conditionally replaces the value in the atomic integer by a new one with release semantics.

&selfcompare_exchange_weak

Conditionally replaces the value in the atomic integer by a new one with relaxed ordering guarantees.

&selfexchange

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

&selfexchange_acquire

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

&selfexchange_acquire_release

Replaces the value in the atomic integer by a new one with acquire-release semantics.

&selfexchange_release

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

&selfexchange_weak

Replaces the value in the atomic integer by a new one with relaxed ordering guarantees.

&selfload

Loads the value of the atomic integer with sequentially consistent semantics.

&selfload_acquire

Loads the value of the atomic integer with acquire semantics.

&selfload_unordered

Loads the value of the atomic integer without ordering guarantees.

&selfload_weak

Loads the value of the atomic integer with relaxed ordering guarantees.

&selfmax

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

&selfmax_acquire

Replaces the value in the atomic integer by the maximum of the current value and a given value with acquire semantics.

&selfmax_acquire_release

Replaces the value in the atomic integer by the maximum of the current value and a given value with acquire-release semantics.

&selfmax_release

Replaces the value in the atomic integer by the maximum of the current value and a given value with release semantics.

&selfmax_weak

Replaces the value in the atomic integer by the maximum of the current value and a given value with relaxed ordering guarantees.

&selfmin

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

&selfmin_acquire

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

&selfmin_acquire_release

Replaces the value in the atomic integer by the minimum of the current value and a given value with acquire-release semantics.

&selfmin_release

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

&selfmin_weak

Replaces the value in the atomic integer by the minimum of the current value and a given value with relaxed ordering guarantees.

&selfnand

Performs a binary nand operation on the atomic integer with sequentially consistent semantics.

&selfnand_acquire

Performs a binary nand operation on the atomic integer with acquire semantics.

&selfnand_acquire_release

Performs a binary nand operation on the atomic integer with acquire-release semantics.

&selfnand_release

Performs a binary nand operation on the atomic integer with release semantics.

&selfnand_weak

Performs a binary nand operation on the atomic integer with relaxed ordering guarantees.

&selfor

Performs a binary or operation on the atomic integer with sequentially consistent semantics.

&selfor_acquire

Performs a binary or operation on the atomic integer with acquire semantics.

&selfor_acquire_release

Performs a binary or operation on the atomic integer with acquire-release semantics.

&selfor_release

Performs a binary or operation on the atomic integer with release semantics.

&selfor_weak

Performs a binary or operation on the atomic integer with relaxed ordering guarantees.

&selfstore

Stores a new value in the atomic integer with sequentially consistent.

&selfstore_release

Stores a new value in the atomic integer with release semantics.

&selfstore_unordered

Stores a new value in the atomic integer without ordering guarantees.

&selfstore_weak

Stores a new value in the atomic integer with relaxed ordering guarantees.

&selfsub

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

&selfsub_acquire

Subtracts a value from the atomic integer with acquire semantics.

&selfsub_acquire_release

Subtracts a value from the atomic integer with acquire-release semantics.

&selfsub_release

Subtracts a value from the atomic integer with release semantics.

&selfsub_weak

Subtracts a value from the atomic integer with relaxed ordering guarantees.

&selfunwrap
&selfxor

Performs a binary xor operation on the atomic integer with sequentially consistent semantics.

&selfxor_acquire

Performs a binary xor operation on the atomic integer with acquire semantics.

&selfxor_acquire_release

Performs a binary xor operation on the atomic integer with acquire-release semantics.

&selfxor_release

Performs a binary xor operation on the atomic integer with release semantics.

&selfxor_weak

Performs a binary xor operation on the atomic integer with relaxed ordering guarantees.

Trait implementations

NameDescription
Send

Objects whose ownership can be moved from one thread to another.

Sync

Objects that allow immutable access from threads other than their owning thread.