Struct ptree::builder::TreeBuilder[][src]

pub struct TreeBuilder { /* fields omitted */ }

A builder for a tree of StringItems

Methods

impl TreeBuilder
[src]

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

Auto Trait Implementations

impl Send for TreeBuilder

impl Sync for TreeBuilder