Module charcoal::traversal [−][src]
Everything related to traversing trees in general.
The module is home to the following items:
Visitor
andVisitorMut
— two similar traits for types which describe algorithms with stateTraversable
and its optional extension,TraversableMut
— traits for types which describe tree-like structures which can be traversed byVisitor
andVisitorMut
algorithms- Implementations of ubiquitous algorithms for trees (see the
algorithms
module for more) - Niche
TraverseIter
andTraverseMutIter
helpers, wrapping aVisitor
/Traversable
orVisitorMut
/TraversableMut
pair into an iterator interface - Helper types:
Step
,VisitorDirection
andCursorDirectionError
Modules
algorithms | Ubiquitous algorithms for trees. |
Structs
CursorDirectionError | The error returned by traversables when a visitor gives incorrect directions for the cursor. |
TraverseIter | An iterator which groups a |
TraverseMutIter | An iterator which groups a |
Enums
Step | The result of a single traversal step. |
VisitorDirection | The direction in which a visitor wishes to go after visiting a node. |
Traits
Traversable | Data structures which can be traversed using |
TraversableMut | Data structures which can be traversed using |
Visitor | Iterator-like structures which control a traversable tree’s cursor and use it to read information from the tree. |
VisitorMut | A version of |
Type Definitions
CursorResult | A result type for functions receiving or returning a cursor which has possibly been incorrectly driven. |