Crate microkelvin

Source
Expand description

Crate for creating and traversing recursively annotated structures. It has three parts:

  • Compound, a trait for a generic way to implement tree structures.
  • Branch and BranchMut, types for representing branches in tree-formed data as well as methods for searching.
  • Walker, a trait for a generic way of walking Compounds.

Structs§

Branch
Represents an immutable branch view into a collection.
BranchMut
Represents a branch view into a collection.
Walk
The argument given to a Walker to traverse through nodes.

Enums§

Child
The response of the child method on a Compound node.
ChildMut
The response of the child_mut method on a Compound node.
Step
The return value from a closure to walk the tree.

Traits§

Compound
A type that can recursively contain itself and leaves.
First
Trait that provides a first and first_mut method to any Compound.
MutableLeaves
Marker trait to signal that a data structure can allow mutable access to its leaves.
Walker
The trait used to construct a Branch or to iterate through a tree.