Enum rets_expression::ExpressionOp
source · pub enum ExpressionOp {
Show 14 variants
Add,
Sub,
Mul,
Div,
Mod,
Concat,
Lt,
Lte,
Gt,
Gte,
Eq,
Ne,
Contains,
In,
}Expand description
A binary operation in an OpNode
Variants§
Add
Add two expressions A + B
Sub
Subtract one expression from another A - B
Mul
Multiple two expressions A * B
Div
Divide one expression by another A / B
Mod
Take the modulus of one number with another A .MOD. B
Concat
Concatenate two strings A || B
Lt
Compare two expressions using a less-than comparison A < B
Lte
Compare two expressions using a less-than-or-equal-to comparison A <= B
Gt
Compare two expressions using a greater-than comparison A > B
Gte
Compare two expressions using a greater-than-or-equal-to comparison A >= B
Eq
Compare two expressions using an equal-to comparison A = B
Ne
Compare two expressions using a not-equal-to comparison A != B
Contains
Determine if one expression contains another expression A .CONTAINS. B
In
Determine if one expression is in another expression A .IN. B
Implementations§
Trait Implementations§
source§impl Clone for ExpressionOp
impl Clone for ExpressionOp
source§fn clone(&self) -> ExpressionOp
fn clone(&self) -> ExpressionOp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExpressionOp
impl Debug for ExpressionOp
source§impl PartialEq for ExpressionOp
impl PartialEq for ExpressionOp
impl Copy for ExpressionOp
impl Eq for ExpressionOp
impl StructuralPartialEq for ExpressionOp
Auto Trait Implementations§
impl Freeze for ExpressionOp
impl RefUnwindSafe for ExpressionOp
impl Send for ExpressionOp
impl Sync for ExpressionOp
impl Unpin for ExpressionOp
impl UnwindSafe for ExpressionOp
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)