Struct ptree::builder::TreeBuilder [−][src]
pub struct TreeBuilder { /* fields omitted */ }
Expand description
A builder for a tree of StringItem
s
Implementations
Start building a tree
The text
argument will be the top level item’s text.
Add a child to the current item and make the new child current
Finish adding children, and make the current item’s parent current
Add an empty child (leaf item) to the current item
Finish building the tree and return the top level item