Skip to main content

range_signature

Function range_signature 

Source
fn range_signature(name: &str) -> Option<RangeSignature>
Expand description

The signature the PromQL name calls, or None when this compiler has no range kernel for it.

The map is explicit on purpose, as in range_function: a name that is not listed is rejected, so supporting one more function is a decision made in one place rather than a consequence of a name looking familiar. A parameterised function is named here rather than in the map, because its name alone cannot produce the variant the tree binds.