Function new

Source
pub fn new() -> Tree
Expand description

Creates a new empty tree.

This is a convenience function equivalent to Tree::new(). The tree starts with no root value and no children.

§Returns

A new empty Tree instance

§Examples

use lipgloss_tree;

let tree = lipgloss_tree::new();
assert!(tree.to_string().is_empty());