pub enum AtomicRMWBinOp {
Show 13 variants
Xchg,
Add,
Sub,
And,
Nand,
Or,
Xor,
Max,
Min,
UMax,
UMin,
FAdd,
FSub,
}Variants
Xchg
Stores to memory and returns the prior value.
Add
Adds to the value in memory and returns the prior value.
Sub
Subtract a value off the value in memory and returns the prior value.
And
Bitwise and into memory and returns the prior value.
Nand
Bitwise nands into memory and returns the prior value.
Or
Bitwise ors into memory and returns the prior value.
Xor
Bitwise xors into memory and returns the prior value.
Max
Sets memory to the signed-greater of the value provided and the value in memory. Returns the value that was in memory.
Min
Sets memory to the signed-lesser of the value provided and the value in memory. Returns the value that was in memory.
UMax
Sets memory to the unsigned-greater of the value provided and the value in memory. Returns the value that was in memory.
UMin
Sets memory to the unsigned-lesser of the value provided and the value in memory. Returns the value that was in memory.
FAdd
Adds to the float-typed value in memory and returns the prior value.
FSub
Subtract a float-typed value off the value in memory and returns the prior value.
Trait Implementations
sourceimpl Clone for AtomicRMWBinOp
impl Clone for AtomicRMWBinOp
sourcefn clone(&self) -> AtomicRMWBinOp
fn clone(&self) -> AtomicRMWBinOp
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AtomicRMWBinOp
impl Debug for AtomicRMWBinOp
sourceimpl From<LLVMAtomicRMWBinOp> for AtomicRMWBinOp
impl From<LLVMAtomicRMWBinOp> for AtomicRMWBinOp
sourcefn from(src: LLVMAtomicRMWBinOp) -> Self
fn from(src: LLVMAtomicRMWBinOp) -> Self
Converts to this type from the input type.
sourceimpl Hash for AtomicRMWBinOp
impl Hash for AtomicRMWBinOp
sourceimpl Into<LLVMAtomicRMWBinOp> for AtomicRMWBinOp
impl Into<LLVMAtomicRMWBinOp> for AtomicRMWBinOp
sourcefn into(self) -> LLVMAtomicRMWBinOp
fn into(self) -> LLVMAtomicRMWBinOp
Converts this type into the (usually inferred) input type.
sourceimpl Ord for AtomicRMWBinOp
impl Ord for AtomicRMWBinOp
sourcefn cmp(&self, other: &AtomicRMWBinOp) -> Ordering
fn cmp(&self, other: &AtomicRMWBinOp) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<AtomicRMWBinOp> for AtomicRMWBinOp
impl PartialEq<AtomicRMWBinOp> for AtomicRMWBinOp
sourcefn eq(&self, other: &AtomicRMWBinOp) -> bool
fn eq(&self, other: &AtomicRMWBinOp) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl PartialOrd<AtomicRMWBinOp> for AtomicRMWBinOp
impl PartialOrd<AtomicRMWBinOp> for AtomicRMWBinOp
sourcefn partial_cmp(&self, other: &AtomicRMWBinOp) -> Option<Ordering>
fn partial_cmp(&self, other: &AtomicRMWBinOp) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for AtomicRMWBinOp
impl Eq for AtomicRMWBinOp
impl StructuralEq for AtomicRMWBinOp
impl StructuralPartialEq for AtomicRMWBinOp
Auto Trait Implementations
impl RefUnwindSafe for AtomicRMWBinOp
impl Send for AtomicRMWBinOp
impl Sync for AtomicRMWBinOp
impl Unpin for AtomicRMWBinOp
impl UnwindSafe for AtomicRMWBinOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more