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
sourceimpl Clone for ArithLogOp
impl Clone for ArithLogOp
sourcefn clone(&self) -> ArithLogOp
fn clone(&self) -> ArithLogOp
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ArithLogOp
impl Debug for ArithLogOp
sourceimpl<'de> Deserialize<'de> for ArithLogOp
impl<'de> Deserialize<'de> for ArithLogOp
sourcefn 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
sourceimpl Display for ArithLogOp
impl Display for ArithLogOp
sourceimpl PartialEq<ArithLogOp> for ArithLogOp
impl PartialEq<ArithLogOp> for ArithLogOp
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more