pub enum AtomicRmw {
Add,
Sub,
And,
Or,
Xor,
Nand,
}Expand description
The arithmetic a AtomicOp::Rmw performs.
Variants§
Add
+
Sub
-
And
&
Or
|
Xor
^
Nand
~(a & b), which Rust has no fetch_nand for on the integers and
which is therefore a fetch_update.
Implementations§
Trait Implementations§
impl Copy for AtomicRmw
impl Eq for AtomicRmw
impl StructuralPartialEq for AtomicRmw
Auto Trait Implementations§
impl Freeze for AtomicRmw
impl RefUnwindSafe for AtomicRmw
impl Send for AtomicRmw
impl Sync for AtomicRmw
impl Unpin for AtomicRmw
impl UnsafeUnpin for AtomicRmw
impl UnwindSafe for AtomicRmw
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