pub fn new(data: T) -> NodePtr<T> {
        Rc::from(RefCell::from(Tree {
            data,
            parent: None,
            siblings: vec![],
        }))
    }
/// Create new tree.
///
/// Returns refernce-counted RefCell to the tree's root with
/// specified value.
///
/// # Examples
///
/// ```
/// let root = Tree::new(0);
///
/// assert_eq!(root.boorrow().to_string(), "(0)");
/// ```
///
Create new tree.
Returns refernce-counted RefCell to the tree's root with
specified value.
Create new tree . Returns refernce - counted RefCell to the tree ' s root with specified value .
pub fn new(data: T) -> NodePtr<T> {
        Rc::from(RefCell::from(Tree {
            data,
            parent: None,
            siblings: vec![],
        }))
    }
pub fn new ( data : T ) -> NodePtr < T > { Rc :: from ( RefCell :: from ( Tree { data , parent : None , siblings : vec ! [ ] , } ) ) }
Create new tree.
Create new tree .
data
T
examples
None