fn add_child<T>(&mut self, leaf: T) -> &mut Self
    where
        T: Into<FileTreeNode>,
    {
        self.sub.push(leaf.into());
        self
    }
// adds a child node
// warning: does not enforce unique `name` between child nodes.
adds a child node
warning: does not enforce unique `name` between child nodes.
adds a child node warning : does not enforce unique ` name ` between child nodes .
fn add_child<T>(&mut self, leaf: T) -> &mut Self
    where
        T: Into<FileTreeNode>,
    {
        self.sub.push(leaf.into());
        self
    }
fn add_child < T > ( & mut self , leaf : T ) -> & mut Self where T : Into < FileTreeNode > , { self . sub . push ( leaf . into ( ) ) ; self }
adds a child node
warning: does not enforce unique `name` between child nodes.
adds a child node warning : does not enforce unique ` name ` between child nodes .
&mut self
leaf
T
&mut self
leaf
T