pub enum PlaceholderKey<'a> {
Empty,
Dollar(&'a str),
Env(&'a str),
ScriptEnv(&'a str),
Call(PlaceholderCall<'a>),
Bare(&'a str),
}Expand description
One {{ ... }} key, classified. The single grammar behind every
expansion and check phase: parse-time qualification, the static
gate, script-engine expansion, and override-map expansion all route
through this, so the phases can never disagree on what shape a key
is. Payloads stay raw (untrimmed, unsplit): trimming, splitting,
lookup sources, and errors belong to the caller, whose contracts
differ. Input must arrive trimmed: every producer trims at its
boundary (TemplateSegments yields trimmed keys; the streaming
expander trims on extract).
Variants§
Empty
Empty key: every phase rejects it.
Dollar(&'a str)
$ plus the raw rest: split through split_var_path.
Env(&'a str)
env: plus the raw name.
ScriptEnv(&'a str)
script_env: plus the raw name.
Call(PlaceholderCall<'a>)
One [MODULE::]FUNC(args) body, through the shared
parse_placeholder_call grammar.
Bare(&'a str)
Anything else, verbatim: script-var lookup, step-override lookup, or a hard error, per the caller’s contract.