#[repr(u8)]pub enum BinaryOp {
Show 14 variants
Add(Addition),
Div(Division),
Mul(Multiplication),
Sub(Subtraction),
Pow,
Rem(Remainder),
Max,
Min,
And,
Or,
Xor,
Shl,
Shr,
Custom(),
}Variants§
Add(Addition)
Div(Division)
Mul(Multiplication)
Sub(Subtraction)
Pow
Rem(Remainder)
Max
Min
And
Or
Xor
Shl
Shr
Custom()
Implementations§
source§impl BinaryOp
impl BinaryOp
pub fn differentiable(&self) -> bool
pub fn is_commutative(&self) -> bool
pub fn add() -> Self
pub fn div() -> Self
pub fn mul() -> Self
pub fn rem() -> Self
pub fn sub() -> Self
pub fn pow() -> Self
pub fn max() -> Self
pub fn min() -> Self
pub fn bitand() -> Self
pub fn bitor() -> Self
pub fn bitxor() -> Self
pub fn shl() -> Self
pub fn shr() -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for BinaryOp
impl<'de> Deserialize<'de> for BinaryOp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl IntoEnumIterator for BinaryOp
impl IntoEnumIterator for BinaryOp
type Iterator = BinaryOpIter
fn iter() -> BinaryOpIter ⓘ
source§impl Ord for BinaryOp
impl Ord for BinaryOp
source§impl PartialEq for BinaryOp
impl PartialEq for BinaryOp
source§impl PartialOrd for BinaryOp
impl PartialOrd for BinaryOp
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl VariantNames for BinaryOp
impl VariantNames for BinaryOp
impl Copy for BinaryOp
impl Eq for BinaryOp
impl StructuralPartialEq for BinaryOp
Auto Trait Implementations§
impl Freeze for BinaryOp
impl RefUnwindSafe for BinaryOp
impl Send for BinaryOp
impl Sync for BinaryOp
impl Unpin for BinaryOp
impl UnwindSafe for BinaryOp
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