Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

Module sexpr_mutation

Module sexpr_mutation 

Source
Expand description

Generic owned-tree mutation primitives.

Structs§

Walk
Depth-first iterator over list nodes, including a list root.

Functions§

find_path
Find a nested sequence of direct child list heads.
remove_all_elements
Remove every direct child list whose head matches name, preserving order.
remove_element
Remove and return the first direct child list whose head matches name.
replace_element
Replace the first direct child list whose head matches name.
set_value
Set (name value) as a direct child, replacing the first match or appending.
transform_descendants
Replace every matching descendant without recursing into replacements.
walk
Walk all list nodes depth-first.