Enum promql::Node [] [src]

pub enum Node {
    Operator {
        x: Box<Node>,
        op: Op,
        y: Box<Node>,
    },
    Vector(Vector),
    Scalar(f32),
    String(String),
    Function {
        name: String,
        args: Vec<Node>,
        aggregation: Option<AggregationMod>,
    },
    Negation(Box<Node>),
}

AST node.

Variants

Operator: a + ignoring (foo) b

Fields of Operator

First operand.

Operator itself.

Second operand.

Time series vector.

Floating point number.

String literal.

Function call or aggregation operator.

Fields of Function

Unary negation, e.g. -b in a + -b

Trait Implementations

impl Debug for Node
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Node
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.