Module children

Source
Expand description

Node and tree data structures for building hierarchical content. Node and tree data structures for building hierarchical content.

This module provides the core data structures for representing tree nodes and collections of children. It supports styling, filtering, and complex tree operations with Go lipgloss compatibility.

Structs§

Filter
A filtered view of children that applies a predicate function.
Leaf
A terminal node in the tree that contains a value but no children.
NodeChildren
A concrete implementation of the Children trait using a vector of boxed nodes.
Tree
A tree node that can contain both a value and child nodes.

Traits§

Children
Trait defining a collection of child nodes in a tree structure.
CloneNode
Helper trait to enable cloning boxed trait objects for Node.
Node
Trait defining a node in a tree structure.

Functions§

new_string_data
Creates a NodeChildren collection from string slice data.
root
Creates a new tree with the specified root value.