[][src]Enum moore_svlog::hir::BinaryOp

pub enum BinaryOp {
    Add,
    Sub,
    Mul,
    Div,
    Mod,
    Pow,
    Eq,
    Neq,
    Lt,
    Leq,
    Gt,
    Geq,
    LogicAnd,
    LogicOr,
    BitAnd,
    BitNand,
    BitOr,
    BitNor,
    BitXor,
    BitXnor,
    LogicShL,
    LogicShR,
    ArithShL,
    ArithShR,
}

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

impl Clone for BinaryOp[src]

impl Copy for BinaryOp[src]

impl Debug for BinaryOp[src]

impl Eq for BinaryOp[src]

impl HasDesc for BinaryOp[src]

impl PartialEq<BinaryOp> for BinaryOp[src]

impl StructuralEq for BinaryOp[src]

impl StructuralPartialEq for BinaryOp[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.