pub enum RmwOp {
Show 13 variants
Xchg,
Add,
Sub,
And,
Nand,
Or,
Xor,
SMax,
SMin,
UMax,
UMin,
FAdd,
FSub,
}Expand description
Which operation an atomic_rmw performs.
Variants§
Xchg
Replace, returning the old value.
Add
Integer addition.
Sub
Integer subtraction.
And
Bitwise and.
Nand
Bitwise and, then complement, which is the one hardware sometimes has natively.
Or
Bitwise or.
Xor
Bitwise exclusive or.
SMax
Signed maximum.
SMin
Signed minimum.
UMax
Unsigned maximum.
UMin
Unsigned minimum.
FAdd
Floating point addition.
FSub
Floating point subtraction.
Implementations§
Trait Implementations§
impl Copy for RmwOp
impl Eq for RmwOp
Source§impl Ord for RmwOp
impl Ord for RmwOp
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for RmwOp
impl PartialOrd for RmwOp
impl StructuralPartialEq for RmwOp
Auto Trait Implementations§
impl Freeze for RmwOp
impl RefUnwindSafe for RmwOp
impl Send for RmwOp
impl Sync for RmwOp
impl Unpin for RmwOp
impl UnsafeUnpin for RmwOp
impl UnwindSafe for RmwOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more