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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.