Skip to main content

Module traverse

Module traverse 

Source
Expand description

Core dot-path traversal for get/set operations.

Structs§

Located
A node a path resolved to, with the structural route that reached it.

Enums§

MissingContainer
What expand_path_pattern does when the container a wildcard stands in is not there.

Functions§

expand_path_pattern
Resolve a path pattern against root into the concrete paths it names.
get_path
Get a cloned value at the given dot-path.
get_path_ref
Get a value at the given dot-path: locate without the route.
locate
Resolve a document path and return its node and structural route.
locate_with_route
Resolve a path, retaining structural steps even when the target is absent.
resolve_path
Rewrite path into the equivalent index-only address for root.
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), before calling this.
unset_path
Remove the key at the given dot-path from its parent object.