An atomic integer wrapper.
struct AtomicU32 {
/* private fields */
}| Name | Description |
|---|---|
| new | Creates a new atomic integer. |
| wrap |
| Receiver | Name | Description |
|---|---|---|
&self | add | Adds a value to the atomic integer with sequentially consistent semantics. |
&self | add_acquire | Adds a value to the atomic integer with acquire semantics. |
&self | add_acquire_release | Adds a value to the atomic integer with acquire-release semantics. |
&self | add_release | Adds a value to the atomic integer with release semantics. |
&self | add_weak | Adds a value to the atomic integer with relaxed ordering guarantees. |
&self | and | Performs a binary and operation on the atomic integer with sequentially consistent semantics. |
&self | and_acquire | Performs a binary and operation on the atomic integer with acquire semantics. |
&self | and_acquire_release | Performs a binary and operation on the atomic integer with acquire-release semantics. |
&self | and_release | Performs a binary and operation on the atomic integer with release semantics. |
&self | and_weak | Performs a binary and operation on the atomic integer with relaxed ordering guarantees. |
&self | compare_exchange | Conditionally replaces the value in the atomic integer by a new one with sequentially consistent semantics. |
&self | compare_exchange_acquire | Conditionally replaces the value in the atomic integer by a new one with acquire semantics. |
&self | compare_exchange_acquire_release | Conditionally replaces the value in the atomic integer by a new one with acquire-release semantics. |
&self | compare_exchange_release | Conditionally replaces the value in the atomic integer by a new one with release semantics. |
&self | compare_exchange_weak | Conditionally replaces the value in the atomic integer by a new one with relaxed ordering guarantees. |
&self | exchange | Replaces the value in the atomic integer by a new one with sequentially consistent semantics. |
&self | exchange_acquire | Replaces the value in the atomic integer by a new one with acquire semantics. |
&self | exchange_acquire_release | Replaces the value in the atomic integer by a new one with acquire-release semantics. |
&self | exchange_release | Replaces the value in the atomic integer by a new one with release semantics. |
&self | exchange_weak | Replaces the value in the atomic integer by a new one with relaxed ordering guarantees. |
&self | load | Loads the value of the atomic integer with sequentially consistent semantics. |
&self | load_acquire | Loads the value of the atomic integer with acquire semantics. |
&self | load_unordered | Loads the value of the atomic integer without ordering guarantees. |
&self | load_weak | Loads the value of the atomic integer with relaxed ordering guarantees. |
&self | max | Replaces the value in the atomic integer by the maximum of the current value and a given value with sequentially consistent semantics. |
&self | max_acquire | Replaces the value in the atomic integer by the maximum of the current value and a given value with acquire semantics. |
&self | max_acquire_release | Replaces the value in the atomic integer by the maximum of the current value and a given value with acquire-release semantics. |
&self | max_release | Replaces the value in the atomic integer by the maximum of the current value and a given value with release semantics. |
&self | max_weak | Replaces the value in the atomic integer by the maximum of the current value and a given value with relaxed ordering guarantees. |
&self | min | Replaces the value in the atomic integer by the minimum of the current value and a given value with sequentially consistent semantics. |
&self | min_acquire | Replaces the value in the atomic integer by the minimum of the current value and a given value with acquire semantics. |
&self | min_acquire_release | Replaces the value in the atomic integer by the minimum of the current value and a given value with acquire-release semantics. |
&self | min_release | Replaces the value in the atomic integer by the minimum of the current value and a given value with release semantics. |
&self | min_weak | Replaces the value in the atomic integer by the minimum of the current value and a given value with relaxed ordering guarantees. |
&self | nand | Performs a binary nand operation on the atomic integer with sequentially consistent semantics. |
&self | nand_acquire | Performs a binary nand operation on the atomic integer with acquire semantics. |
&self | nand_acquire_release | Performs a binary nand operation on the atomic integer with acquire-release semantics. |
&self | nand_release | Performs a binary nand operation on the atomic integer with release semantics. |
&self | nand_weak | Performs a binary nand operation on the atomic integer with relaxed ordering guarantees. |
&self | or | Performs a binary or operation on the atomic integer with sequentially consistent semantics. |
&self | or_acquire | Performs a binary or operation on the atomic integer with acquire semantics. |
&self | or_acquire_release | Performs a binary or operation on the atomic integer with acquire-release semantics. |
&self | or_release | Performs a binary or operation on the atomic integer with release semantics. |
&self | or_weak | Performs a binary or operation on the atomic integer with relaxed ordering guarantees. |
&self | store | Stores a new value in the atomic integer with sequentially consistent. |
&self | store_release | Stores a new value in the atomic integer with release semantics. |
&self | store_unordered | Stores a new value in the atomic integer without ordering guarantees. |
&self | store_weak | Stores a new value in the atomic integer with relaxed ordering guarantees. |
&self | sub | Subtracts a value from the atomic integer with sequentially consistent semantics. |
&self | sub_acquire | Subtracts a value from the atomic integer with acquire semantics. |
&self | sub_acquire_release | Subtracts a value from the atomic integer with acquire-release semantics. |
&self | sub_release | Subtracts a value from the atomic integer with release semantics. |
&self | sub_weak | Subtracts a value from the atomic integer with relaxed ordering guarantees. |
&self | unwrap | |
&self | xor | Performs a binary xor operation on the atomic integer with sequentially consistent semantics. |
&self | xor_acquire | Performs a binary xor operation on the atomic integer with acquire semantics. |
&self | xor_acquire_release | Performs a binary xor operation on the atomic integer with acquire-release semantics. |
&self | xor_release | Performs a binary xor operation on the atomic integer with release semantics. |
&self | xor_weak | Performs a binary xor operation on the atomic integer with relaxed ordering guarantees. |
| Name | Description |
|---|---|
| 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. |