Skip to main content

parse_reference

Function parse_reference 

Source
pub fn parse_reference(input: &str) -> Result<Reference, ExprError>
Expand description

Parses a bare reference path (items, output.items, results.0.items), the standalone counterpart of a path operand in the expression grammar.

The MAX_EXPRESSION_LEN-character cap is enforced first, exactly as parse does. Only a path is accepted: a literal (5, "x", true) is rejected, so a reference always names a location in the routed value rather than a constant.

ยงErrors

Returns an ExprError when the input exceeds the length cap, is not a well-formed path, or is a bare literal rather than a path.