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) coerce them toward the existing type via crate::document::coerce::coerce_values_typed before calling this.
unset_path
Remove the key at the given dot-path from its parent object.