pub enum Calculation {
Arithmetic(ArithmeticExpression),
Function(CalculationFunction),
JavaScript(String),
Constant(FieldValue),
}Expand description
Calculation types
Variants§
Arithmetic(ArithmeticExpression)
Simple arithmetic expression
Function(CalculationFunction)
Predefined function
JavaScript(String)
Custom JavaScript (limited subset)
Constant(FieldValue)
Constant value
Trait Implementations§
Source§impl Clone for Calculation
impl Clone for Calculation
Source§fn clone(&self) -> Calculation
fn clone(&self) -> Calculation
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 moreAuto Trait Implementations§
impl Freeze for Calculation
impl RefUnwindSafe for Calculation
impl Send for Calculation
impl Sync for Calculation
impl Unpin for Calculation
impl UnsafeUnpin for Calculation
impl UnwindSafe for Calculation
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