Enum inkwell::AtomicRMWBinOp
source · pub enum AtomicRMWBinOp {
Show 15 variants
Xchg,
Add,
Sub,
And,
Nand,
Or,
Xor,
Max,
Min,
UMax,
UMin,
FAdd,
FSub,
FMax,
FMin,
}
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.
FMax
Sets memory to the greater of the two float-typed values, one provided and one from memory. Returns the value that was in memory.
FMin
Sets memory to the lesser of the two float-typed values, one provided and one from memory. Returns the value that was in memory.
Trait Implementations§
source§impl Clone for AtomicRMWBinOp
impl Clone for AtomicRMWBinOp
source§fn clone(&self) -> AtomicRMWBinOp
fn clone(&self) -> AtomicRMWBinOp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AtomicRMWBinOp
impl Debug for AtomicRMWBinOp
source§impl From<LLVMAtomicRMWBinOp> for AtomicRMWBinOp
impl From<LLVMAtomicRMWBinOp> for AtomicRMWBinOp
source§fn from(src: LLVMAtomicRMWBinOp) -> Self
fn from(src: LLVMAtomicRMWBinOp) -> Self
source§impl Hash for AtomicRMWBinOp
impl Hash for AtomicRMWBinOp
source§impl Into<LLVMAtomicRMWBinOp> for AtomicRMWBinOp
impl Into<LLVMAtomicRMWBinOp> for AtomicRMWBinOp
source§fn into(self) -> LLVMAtomicRMWBinOp
fn into(self) -> LLVMAtomicRMWBinOp
source§impl Ord for AtomicRMWBinOp
impl Ord for AtomicRMWBinOp
source§fn cmp(&self, other: &AtomicRMWBinOp) -> Ordering
fn cmp(&self, other: &AtomicRMWBinOp) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for AtomicRMWBinOp
impl PartialEq for AtomicRMWBinOp
source§fn eq(&self, other: &AtomicRMWBinOp) -> bool
fn eq(&self, other: &AtomicRMWBinOp) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AtomicRMWBinOp
impl PartialOrd for AtomicRMWBinOp
source§fn partial_cmp(&self, other: &AtomicRMWBinOp) -> Option<Ordering>
fn partial_cmp(&self, other: &AtomicRMWBinOp) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AtomicRMWBinOp
impl Eq for AtomicRMWBinOp
impl StructuralPartialEq for AtomicRMWBinOp
Auto Trait Implementations§
impl Freeze for AtomicRMWBinOp
impl RefUnwindSafe for AtomicRMWBinOp
impl Send for AtomicRMWBinOp
impl Sync for AtomicRMWBinOp
impl Unpin for AtomicRMWBinOp
impl UnwindSafe for AtomicRMWBinOp
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more