pub enum ElementWiseOp {
Add,
Subtract,
Multiply,
Divide,
Power,
Min,
Max,
Modulo,
}Expand description
Element-wise operation type.
Variants§
Add
Addition: a + b
Subtract
Subtraction: a - b
Multiply
Multiplication: a * b
Divide
Division: a / b
Power
Power: a ^ b
Min
Minimum: min(a, b)
Max
Maximum: max(a, b)
Modulo
Modulo: a % b
Trait Implementations§
Source§impl Clone for ElementWiseOp
impl Clone for ElementWiseOp
Source§fn clone(&self) -> ElementWiseOp
fn clone(&self) -> ElementWiseOp
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 ElementWiseOp
impl Debug for ElementWiseOp
Source§impl PartialEq for ElementWiseOp
impl PartialEq for ElementWiseOp
impl Copy for ElementWiseOp
impl Eq for ElementWiseOp
impl StructuralPartialEq for ElementWiseOp
Auto Trait Implementations§
impl Freeze for ElementWiseOp
impl RefUnwindSafe for ElementWiseOp
impl Send for ElementWiseOp
impl Sync for ElementWiseOp
impl Unpin for ElementWiseOp
impl UnsafeUnpin for ElementWiseOp
impl UnwindSafe for ElementWiseOp
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.