pub enum ExecutableArithmeticExpression {
Show 15 variants
Variable {
name: String,
},
Integer {
value: i64,
},
Float {
ieee754_bits: u64,
},
Add {
left: Box<Self>,
right: Box<Self>,
},
Subtract {
left: Box<Self>,
right: Box<Self>,
},
Multiply {
left: Box<Self>,
right: Box<Self>,
},
Divide {
left: Box<Self>,
right: Box<Self>,
},
Modulo {
left: Box<Self>,
right: Box<Self>,
},
AbsoluteValue {
value: Box<Self>,
},
Minimum {
left: Box<Self>,
right: Box<Self>,
},
Maximum {
left: Box<Self>,
right: Box<Self>,
},
Power {
base: Box<Self>,
exponent: Box<Self>,
},
Cast {
value: Box<Self>,
scalar_type: ExecutableScalarType,
},
FunctionCall {
name: String,
arguments: Vec<Self>,
},
Conditional {
condition_left: Box<Self>,
condition_operator: ComparisonOperator,
condition_right: Box<Self>,
then_expression: Box<Self>,
else_expression: Box<Self>,
},
}Expand description
Arithmetic expression preserved without string rendering.
Variants§
Variable
Integer
Float
Add
Subtract
Multiply
Divide
Modulo
AbsoluteValue
Minimum
Maximum
Power
Cast
FunctionCall
Conditional
Trait Implementations§
Source§impl Clone for ExecutableArithmeticExpression
impl Clone for ExecutableArithmeticExpression
Source§fn clone(&self) -> ExecutableArithmeticExpression
fn clone(&self) -> ExecutableArithmeticExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for ExecutableArithmeticExpression
impl StructuralPartialEq for ExecutableArithmeticExpression
Auto Trait Implementations§
impl Freeze for ExecutableArithmeticExpression
impl RefUnwindSafe for ExecutableArithmeticExpression
impl Send for ExecutableArithmeticExpression
impl Sync for ExecutableArithmeticExpression
impl Unpin for ExecutableArithmeticExpression
impl UnsafeUnpin for ExecutableArithmeticExpression
impl UnwindSafe for ExecutableArithmeticExpression
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more