Expand description
TreeNode for visiting and rewriting expression and plan trees
Structs§
- Result of tree walk / transformation APIs
Enums§
- Controls how
TreeNoderecursions should proceed.
Traits§
- Instead of implementing
TreeNode, it’s recommended to implement aConcreteTreeNodefor trees that contain nodes with payloads. This approach ensures safe execution of algorithms involving payloads, by enforcing rules for detaching and reattaching child nodes. - Transformation helper to access
Transformedfields in aResulteasily. - API for inspecting and rewriting tree data structures.
TreeNodeContainercontains elements that a function can be applied on or mapped. The elements of the container are siblings so the continuation rules are similar toTreeNodeRecursion::visit_sibling/Transformed::transform_sibling.- Transformation helper to process a sequence of iterable tree nodes that are siblings.
TreeNodeRefContainercontains references to elements that a function can be applied on. The elements of the container are siblings so the continuation rules are similar toTreeNodeRecursion::visit_sibling.