Skip to main content

write_path

Function write_path 

Source
pub fn write_path(
    out: &Expr,
    ctx: Value,
    value: Value,
) -> Result<Value, EvalError>
Expand description

Write a value at the path location inside ctx, returning the updated ctx. out must be a Path Expr (its at field is an already-parsed Path, so no re-parsing happens here — this is a thin wrapper around Path::write, adapted to the Value-in/Value-out shape the rest of this crate’s legacy (non-CtxStorage) API uses).