pub enum OutputExpr {
Ref(String),
Field(String),
Add(Box<OutputExpr>, Box<OutputExpr>),
Subtract(Box<OutputExpr>, Box<OutputExpr>),
Multiply(Box<OutputExpr>, Box<OutputExpr>),
Divide {
dividend: Box<OutputExpr>,
divisor: Box<OutputExpr>,
precision: u32,
},
Literal(f64),
}Expand description
Derived-output expression graph ($ref chains in document 19): arithmetic over other named outputs, evaluated after all source metrics.
Variants§
Ref(String)
Reference to another named output.
Field(String)
Raw property on the root/related record, evaluated per row.
Add(Box<OutputExpr>, Box<OutputExpr>)
Addition of two derived expressions.
Subtract(Box<OutputExpr>, Box<OutputExpr>)
Subtraction of the second expression from the first.
Multiply(Box<OutputExpr>, Box<OutputExpr>)
Multiplication of two derived expressions.
Divide
Division of dividend by divisor, rounded to precision decimals.
Fields
§
dividend: Box<OutputExpr>Numerator expression.
§
divisor: Box<OutputExpr>Denominator expression.
Literal(f64)
A numeric literal.
Trait Implementations§
Source§impl Clone for OutputExpr
impl Clone for OutputExpr
Auto Trait Implementations§
impl Freeze for OutputExpr
impl RefUnwindSafe for OutputExpr
impl Send for OutputExpr
impl Sync for OutputExpr
impl Unpin for OutputExpr
impl UnsafeUnpin for OutputExpr
impl UnwindSafe for OutputExpr
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