#[repr(transparent)]pub struct CUstreamAtomicReductionOpType_enum(pub c_uint);Expand description
Atomic reduction operation types for ::CUstreamBatchMemOpParams::atomicReduction::reductionOp
Tuple Fields§
§0: c_uintImplementations§
Source§impl CUstreamAtomicReductionOpType_enum
impl CUstreamAtomicReductionOpType_enum
Sourcepub const CU_STREAM_ATOMIC_REDUCTION_OP_OR: CUstreamAtomicReductionOpType_enum
pub const CU_STREAM_ATOMIC_REDUCTION_OP_OR: CUstreamAtomicReductionOpType_enum
Performs an atomic OR: *(address) = *(address) | value.
Sourcepub const CU_STREAM_ATOMIC_REDUCTION_OP_AND: CUstreamAtomicReductionOpType_enum
pub const CU_STREAM_ATOMIC_REDUCTION_OP_AND: CUstreamAtomicReductionOpType_enum
Performs an atomic AND: *(address) = *(address) & value.
Sourcepub const CU_STREAM_ATOMIC_REDUCTION_OP_ADD: CUstreamAtomicReductionOpType_enum
pub const CU_STREAM_ATOMIC_REDUCTION_OP_ADD: CUstreamAtomicReductionOpType_enum
Performs an atomic ADD: *(address) = *(address) + value.
Trait Implementations§
impl Copy for CUstreamAtomicReductionOpType_enum
impl Eq for CUstreamAtomicReductionOpType_enum
Source§impl Ord for CUstreamAtomicReductionOpType_enum
impl Ord for CUstreamAtomicReductionOpType_enum
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 CUstreamAtomicReductionOpType_enum
impl PartialOrd for CUstreamAtomicReductionOpType_enum
impl StructuralPartialEq for CUstreamAtomicReductionOpType_enum
Auto Trait Implementations§
impl Forget for CUstreamAtomicReductionOpType_enum
impl Freeze for CUstreamAtomicReductionOpType_enum
impl Move for CUstreamAtomicReductionOpType_enum
impl RefUnwindSafe for CUstreamAtomicReductionOpType_enum
impl Send for CUstreamAtomicReductionOpType_enum
impl Sync for CUstreamAtomicReductionOpType_enum
impl Unpin for CUstreamAtomicReductionOpType_enum
impl UnsafeUnpin for CUstreamAtomicReductionOpType_enum
impl UnwindSafe for CUstreamAtomicReductionOpType_enum
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