Skip to main content

Module rule

Module rule 

Source
Expand description

Traits and types representing a transformation rule to a tree.

See the Rule trait for more information.

Structs§

NamedRule
We can create a rule using this struct and pass it into our list of rules directly, For debugging and tracing, it is helpful to see rules by a meaningful name. or we can make use of the named_rule macro (see [tree-morph-macros]).
RuleGroups
TODO
RuleSet
A view into the rules applicable to a specific node, split into two slices.

Traits§

Rule
Trait implemented by rules to transform parts of a tree.

Type Aliases§

RuleFn
A uniform type for fn pointers and closures, which implements the Rule trait.