pub enum Node {
Operator {
op: Op,
args: Vec<Node>,
},
Vector(Vector),
Scalar(f32),
String(Vec<u8>),
Function {
name: String,
args: Vec<Node>,
aggregation: Option<AggregationMod>,
},
Negation(Box<Node>),
}
Expand description
AST node.
Variants§
Operator
Chain of operators with similar mods: a + ignoring (foo) b + ignoring (foo) c
Vector(Vector)
Time series vector.
Scalar(f32)
Floating point number.
String(Vec<u8>)
String literal.
Function
Function call or aggregation operator.
Negation(Box<Node>)
Unary negation, e.g. -b
in a + -b
Trait Implementations§
source§impl PartialEq for Node
impl PartialEq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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