pub enum BinaryOp {
Add,
Sub,
Mul,
Div,
Eq,
Neq,
Gt,
Gte,
Lt,
Lte,
}
Expand description
All operations that can occur between two targets
Variants§
Add
Add two expressions
Sub
Subtract two expressions
Mul
Multiply
Div
Divide
Eq
Equality
Neq
Inequality
Gt
Greater than
Gte
Greater than or equal to
Lt
Less than
Lte
Less than or equal to
Implementations§
Trait Implementations§
impl Copy 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