pub enum Operator {
Show 16 variants
Add,
Sub,
Mul,
Div,
Eq,
Neq,
Lt,
Lte,
Gt,
Gte,
And,
Or,
Xor,
Not,
Contains,
As,
}Expand description
Operator types for expressions.
This enum represents all the operators supported in EventQL, including arithmetic, comparison, and logical operators.
§Operator Precedence
From highest to lowest precedence:
- Unary:
+,-,NOT - Multiplicative:
*,/ - Additive:
+,- - Comparison:
<,<=,>,>=,==,!= - Logical:
AND,OR,XOR
Variants§
Add
Addition operator +
Sub
Subtraction operator -
Mul
Multiplication operator *
Div
Division operator /
Eq
Equality operator ==
Neq
Inequality operator !=
Lt
Less than operator <
Lte
Less than or equal operator <=
Gt
Greater than operator >
Gte
Greater than or equal operator >=
And
Logical AND operator
Or
Logical OR operator
Xor
Logical XOR operator
Not
Logical NOT operator
Contains
Containment (array CONTAINS value)
As
Type conversion (e.foo as STRING)
Trait Implementations§
impl Copy for Operator
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more