Enum rtlola_hir::hir::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
Contains all arithmetical and logical operations.
Variants§
Not
The !
operator for logical inversion
Neg
The -
operator for negation
Add
The +
operator (addition)
Sub
The -
operator (subtraction)
Mul
The *
operator (multiplication)
Div
The /
operator (division)
Rem
The %
operator (modulus)
Pow
The **
operator (power)
And
The &&
operator (logical and)
Or
The ||
operator (logical or)
BitXor
The ^
operator (bitwise xor)
BitAnd
The &
operator (bitwise and)
BitOr
The |
operator (bitwise or)
BitNot
The ~
operator for one’s complement
Shl
The <<
operator (shift left)
Shr
The >>
operator (shift right)
Eq
The ==
operator (equality)
Lt
The <
operator (less than)
Le
The <=
operator (less than or equal to)
Ne
The !=
operator (not equal to)
Ge
The >=
operator (greater than or equal to)
Gt
The >
operator (greater than)
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 Display for ArithLogOp
impl Display for ArithLogOp
source§impl Hash for ArithLogOp
impl Hash 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 ==
.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.