pub fn root(&self) -> Entity {
        if let Some(root) = self.root {
            return root;
        }

        if let Some(root) = self.parent.keys().next() {
            return *root;
        }

        0.into()
    }
/// Returns the root of the tree.
Returns the root of the tree.
Returns the root of the tree .
pub fn root(&self) -> Entity {
        if let Some(root) = self.root {
            return root;
        }
        if let Some(root) = self.parent.keys().next() {
            return *root;
        }
        0.into()
    }
pub fn root ( & self ) -> Entity { if let Some ( root ) = self . root { return root ; } if let Some ( root ) = self . parent . keys ( ) . next ( ) { return * root ; } 0 . into ( ) }
Returns the root of the tree.
Returns the root of the tree .
&self