Module charcoal::traversal[][src]

Everything related to traversing trees in general.

The module is home to the following items:

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 Traversable and a Visitor, performing one step with each iteration.

TraverseMutIter

An iterator which groups a TraversableMut and a VisitorMut, performing one step with each iteration.

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 Visitors.

TraversableMut

Data structures which can be traversed using VisitorMuts, giving them mutable access to the stored data.

Visitor

Iterator-like structures which control a traversable tree’s cursor and use it to read information from the tree.

VisitorMut

A version of Visitor with an added ability to acquire mutable access to the tree’s nodes.

Type Definitions

CursorResult

A result type for functions receiving or returning a cursor which has possibly been incorrectly driven.