pub enum ReductionOp {
Sum,
Min,
Max,
And,
Or,
Xor,
Product,
}Expand description
Reduction operation types for code generation.
Variants§
Sum
Sum: a + b
Min
Minimum: min(a, b)
Max
Maximum: max(a, b)
And
Bitwise AND: a & b
Or
Bitwise OR: a | b
Xor
Bitwise XOR: a ^ b
Product
Product: a * b
Implementations§
Trait Implementations§
Source§impl Clone for ReductionOp
impl Clone for ReductionOp
Source§fn clone(&self) -> ReductionOp
fn clone(&self) -> ReductionOp
Returns a duplicate 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 ReductionOp
impl Debug for ReductionOp
Source§impl Default for ReductionOp
impl Default for ReductionOp
Source§fn default() -> ReductionOp
fn default() -> ReductionOp
Returns the “default value” for a type. Read more
Source§impl Display for ReductionOp
impl Display for ReductionOp
Source§impl Hash for ReductionOp
impl Hash for ReductionOp
Source§impl PartialEq for ReductionOp
impl PartialEq for ReductionOp
impl Copy for ReductionOp
impl Eq for ReductionOp
impl StructuralPartialEq for ReductionOp
Auto Trait Implementations§
impl Freeze for ReductionOp
impl RefUnwindSafe for ReductionOp
impl Send for ReductionOp
impl Sync for ReductionOp
impl Unpin for ReductionOp
impl UnwindSafe for ReductionOp
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