Enum lucia_lang::ast::BinOp
source · pub enum BinOp {
Show 14 variants
Add,
Sub,
Mul,
Div,
Mod,
And,
Or,
Eq,
Lt,
Le,
Ne,
Ge,
Gt,
Is,
}Expand description
Binary operator.
Variants§
Add
The + operator (addition)
Sub
The - operator (subtraction)
Mul
The * operator (multiplication)
Div
The / operator (division)
Mod
The % operator (modulus)
And
The and operator (logical and)
Or
The or operator (logical or)
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)
Is
The ‘is’ operator (identity comparison)
Implementations§
Trait Implementations§
source§impl PartialEq<BinOp> for BinOp
impl PartialEq<BinOp> for BinOp
impl Copy for BinOp
impl Eq for BinOp
impl StructuralEq for BinOp
impl StructuralPartialEq for BinOp
Auto Trait Implementations§
impl RefUnwindSafe for BinOp
impl Send for BinOp
impl Sync for BinOp
impl Unpin for BinOp
impl UnwindSafe for BinOp
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.