Skip to main content

Module traverse

Module traverse 

Source
Expand description

Core dot-path traversal for get/set operations.

Functions§

get_path
Get a cloned value at the given dot-path.
get_path_ref
Get a value at the given dot-path.
set_path
Set a value at the given dot-path. value is inserted as-is at the leaf — no coercion happens here; callers that accept CLI strings (e.g. the afdata binary) construct the typed Value first, via crate::document::coerce::value_from_type (an explicit --value-type) or a bare Value::String (zero coercion — see cli-shell-config-todo.md §3), before calling this.
unset_path
Remove the key at the given dot-path from its parent object.