Expand description
Types associated to nodes and in particular node walking.
Structs§
- Ancestors
- An iterator that iterates over the
Node::parentelements of a node. This is used for iterating over the ancestors of a node. - Children
- An iterator that iterates over the
Node::nextelements of a node. This is typically used for iterating over the children of a tree. - Siblings
- An iterator that iterates over the
Node::nextelements of a node. This is typically used for iterating over the children of a tree. - Skip
Tokens - Wrapped around an iterator that excludes nodes without children.
- Walk
- An iterator that walks over the entire tree, visiting every node exactly once.
- Walk
Events - A low-level iterator which walks the tree while emitting Event instances indicating how the structure is being navigated.
- With
Depths - An iterator that walks over the entire tree, visiting every node exactly
once. This is constructed with
Walk::with_depths.
Enums§
- Event
- An event indicating how a tree is being walked with
WalkEvents.