pub enum BinaryOperator {
Show 13 variants
Power,
Multiply,
MatrixMultiply,
Divide,
FloorDivide,
Modulo,
Add,
Subtract,
Lshift,
Rshift,
And,
Xor,
Or,
}
Expand description
The possible Binary operators
Examples
use rustpython_compiler_core::Instruction::BinaryOperation;
use rustpython_compiler_core::BinaryOperator::Add;
let op = BinaryOperation {op: Add};
Variants§
Trait Implementations§
source§impl Clone for BinaryOperator
impl Clone for BinaryOperator
source§fn clone(&self) -> BinaryOperator
fn clone(&self) -> BinaryOperator
Returns a copy 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 BinaryOperator
impl Debug for BinaryOperator
source§impl<'de> Deserialize<'de> for BinaryOperator
impl<'de> Deserialize<'de> for BinaryOperator
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 PartialEq<BinaryOperator> for BinaryOperator
impl PartialEq<BinaryOperator> for BinaryOperator
source§fn eq(&self, other: &BinaryOperator) -> bool
fn eq(&self, other: &BinaryOperator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.