Enum moore_svlog::hir::BinaryOp [−][src]
pub enum BinaryOp {
Show 24 variants
Add,
Sub,
Mul,
Div,
Mod,
Pow,
Eq,
Neq,
Lt,
Leq,
Gt,
Geq,
LogicAnd,
LogicOr,
BitAnd,
BitNand,
BitOr,
BitNor,
BitXor,
BitXnor,
LogicShL,
LogicShR,
ArithShL,
ArithShR,
}
Expand description
The different binary operators.
Variants
The addition operator x + y
.
The subtraction operator x - y
.
The multiplication operator x * y
.
The division operator x / y
.
The modulus operator x % y
.
The power operator x ** y
.
The equality operator x == y
.
The inequality operator x != y
.
The less-than operator x < y
.
The less-than-or-equal operator x <= y
.
The greater-than operator x > y
.
The greater-than-or-equal operator x >= y
.
The logic and operator x && y
.
The logic or operator x || y
.
The bitwise and operator x & y
.
The bitwise not-and operator x ~& y
.
The bitwise or operator x | y
.
The bitwise not-or operator x ~| y
.
The bitwise exclusive-or operator x ^ y
.
The bitwise exclusive-not-or operator x ^~ y
or x ~^ y
.
The logic left shift operator x << y
.
The logic right shift operator x >> y
.
The arithmetic left shift operator x <<< y
.
The arithmetic right shift operator x >>> y
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BinaryOp
impl UnwindSafe for BinaryOp
Blanket Implementations
Mutably borrows from an owned value. Read more