Expand description
TreeNode
for visiting and rewriting expression and plan trees
Structs§
- Result of tree walk / transformation APIs
Enums§
- Controls how
TreeNode
recursions should proceed.
Traits§
- Instead of implementing
TreeNode
, it’s recommended to implement aConcreteTreeNode
for 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
Transformed
fields in aResult
easily. - API for inspecting and rewriting tree data structures.
TreeNodeContainer
contains 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.
TreeNodeRefContainer
contains 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
.