pub enum AtomicRmwOp {
Add,
Sub,
And,
Nand,
Or,
Xor,
Xchg,
Umin,
Umax,
Smin,
Smax,
}
Expand description
Describes the arithmetic operation in an atomic memory read-modify-write operation.
Variants§
Add
Add
Sub
Sub
And
And
Nand
Nand
Or
Or
Xor
Xor
Xchg
Exchange
Umin
Unsigned min
Umax
Unsigned max
Smin
Signed min
Smax
Signed max
Implementations§
Source§impl AtomicRmwOp
impl AtomicRmwOp
Sourcepub fn all() -> &'static [AtomicRmwOp]
pub fn all() -> &'static [AtomicRmwOp]
Returns a slice with all supported AtomicRmwOp’s.
Trait Implementations§
Source§impl Clone for AtomicRmwOp
impl Clone for AtomicRmwOp
Source§fn clone(&self) -> AtomicRmwOp
fn clone(&self) -> AtomicRmwOp
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AtomicRmwOp
impl Debug for AtomicRmwOp
Source§impl Display for AtomicRmwOp
impl Display for AtomicRmwOp
Source§impl FromStr for AtomicRmwOp
impl FromStr for AtomicRmwOp
Source§impl Hash for AtomicRmwOp
impl Hash for AtomicRmwOp
Source§impl PartialEq for AtomicRmwOp
impl PartialEq for AtomicRmwOp
impl Copy for AtomicRmwOp
impl Eq for AtomicRmwOp
impl StructuralPartialEq for AtomicRmwOp
Auto Trait Implementations§
impl Freeze for AtomicRmwOp
impl RefUnwindSafe for AtomicRmwOp
impl Send for AtomicRmwOp
impl Sync for AtomicRmwOp
impl Unpin for AtomicRmwOp
impl UnwindSafe for AtomicRmwOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.