Skip to main content

binary_op

Function binary_op 

Source
fn binary_op(op: &TokenType) -> Option<BinaryOp>
Expand description

The binary operator a PromQL token denotes, or None when there is no node for it.

A comparison carries return_bool separately, so x > 0 and x > bool 0 use the same operator. The node the runtime executes and the constant fold both read the operator here.