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

Add

The addition operator x + y.

Sub

The subtraction operator x - y.

Mul

The multiplication operator x * y.

Div

The division operator x / y.

Mod

The modulus operator x % y.

Pow

The power operator x ** y.

Eq

The equality operator x == y.

Neq

The inequality operator x != y.

Lt

The less-than operator x < y.

Leq

The less-than-or-equal operator x <= y.

Gt

The greater-than operator x > y.

Geq

The greater-than-or-equal operator x >= y.

LogicAnd

The logic and operator x && y.

LogicOr

The logic or operator x || y.

BitAnd

The bitwise and operator x & y.

BitNand

The bitwise not-and operator x ~& y.

BitOr

The bitwise or operator x | y.

BitNor

The bitwise not-or operator x ~| y.

BitXor

The bitwise exclusive-or operator x ^ y.

BitXnor

The bitwise exclusive-not-or operator x ^~ y or x ~^ y.

LogicShL

The logic left shift operator x << y.

LogicShR

The logic right shift operator x >> y.

ArithShL

The arithmetic left shift operator x <<< y.

ArithShR

The arithmetic right shift operator x >>> y.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Obtain a human-readable descriptive name for this node.

Obtain a human-readable description for this node, possibly containing the node’s name. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.