Skip to main content

read_path

Function read_path 

Source
pub fn read_path(path: &str, ctx: &Value) -> Result<Value, EvalError>
Expand description

Parse path and read the value it resolves to inside ctx.

Thin wrapper: parses path via str::parse (surfacing a parse failure as EvalError::InvalidPath) then delegates to Path::read. Callers holding an already-parsed Path (e.g. from an Expr::Path) should call Path::read directly to avoid re-parsing.