Enum rtlola_frontend::mir::ArithLogOp
source · pub enum ArithLogOp {
Show 22 variants
Not,
Neg,
Add,
Sub,
Mul,
Div,
Rem,
Pow,
And,
Or,
BitXor,
BitAnd,
BitOr,
BitNot,
Shl,
Shr,
Eq,
Lt,
Le,
Ne,
Ge,
Gt,
}
Expand description
Arithmetical and logical operations
Variants§
Not
Logic negation (!)
Neg
Arithmetic negation (-)
Add
Arithmetic addition (+)
Sub
Arithmetic subtraction (-)
Mul
Arithmetic multiplication (*)
Div
Arithmetic division (/)
Rem
Arithmetic modulation (%)
Pow
Arithmetic exponentiation (**)
And
Logic conjunction/multiplication (&&)
Or
Logic disjunction/addition (||)
BitXor
Bit-wise xor (^)
BitAnd
Bit-wise conjunction/multiplication (&)
BitOr
Bit-wise disjunction/addition (|)
BitNot
Bit-wise negation / One’s complement (~)
Shl
Bit-wise left-shift (<<)
Shr
Bit-wise right-shift (>>)
Eq
Semantic Equality (==)
Lt
Less-than comparison (<)
Le
Less-than-or-equal comparison (<=)
Ne
Semantic Inequality (!=)
Ge
Greater-than-or-equal comparison (>=)
Gt
Greater-than comparison (>)
Trait Implementations§
source§impl Clone for ArithLogOp
impl Clone for ArithLogOp
source§fn clone(&self) -> ArithLogOp
fn clone(&self) -> ArithLogOp
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 ArithLogOp
impl Debug for ArithLogOp
source§impl<'de> Deserialize<'de> for ArithLogOp
impl<'de> Deserialize<'de> for ArithLogOp
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 Display for ArithLogOp
impl Display for ArithLogOp
source§impl PartialEq<ArithLogOp> for ArithLogOp
impl PartialEq<ArithLogOp> for ArithLogOp
source§fn eq(&self, other: &ArithLogOp) -> bool
fn eq(&self, other: &ArithLogOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArithLogOp
impl Serialize for ArithLogOp
impl Copy for ArithLogOp
impl Eq for ArithLogOp
impl StructuralEq for ArithLogOp
impl StructuralPartialEq for ArithLogOp
Auto Trait Implementations§
impl RefUnwindSafe for ArithLogOp
impl Send for ArithLogOp
impl Sync for ArithLogOp
impl Unpin for ArithLogOp
impl UnwindSafe for ArithLogOp
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.