pub fn new_with_object_root(root_id: Id) -> Self {
        let mut tree = Self::new(root_id.clone());
        tree.construct_object(root_id).unwrap();
        tree.orphans = HashSet::new();
        tree
    }
/// Creates a new `Tree` representing an empty object.
Creates a new `Tree` representing an empty object.
Creates a new ` Tree ` representing an empty object .
pub fn new_with_object_root(root_id: Id) -> Self {
        let mut tree = Self::new(root_id.clone());
        tree.construct_object(root_id).unwrap();
        tree.orphans = HashSet::new();
        tree
    }
pub fn new_with_object_root ( root_id : Id ) -> Self { let mut tree = Self :: new ( root_id . clone ( ) ) ; tree . construct_object ( root_id ) . unwrap ( ) ; tree . orphans = HashSet :: new ( ) ; tree }
Creates a new `Tree` representing an empty object.
Creates a new ` Tree ` representing an empty object .
root_id
Id