pub(super) fn construct_object(&mut self, id: Id) -> Result<(), TreeError> {
        self.construct_simple(
            id.clone(),
            NodeData::Object {
                items: HashMap::new(),
                id,
            },
        )
        .map(|_| ())
    }
/// Constructs a new empty object within the `Tree`. Newly constructed values have no parent or
/// place in the tree until placed with an `assign` call.
Constructs a new empty object within the `Tree`. Newly constructed values have no parent or
place in the tree until placed with an `assign` call.
Constructs a new empty object within the ` Tree ` . Newly constructed values have no parent or place in the tree until placed with an ` assign ` call .
pub(super) fn construct_object(&mut self, id: Id) -> Result<(), TreeError> {
        self.construct_simple(
            id.clone(),
            NodeData::Object {
                items: HashMap::new(),
                id,
            },
        )
        .map(|_| ())
    }
pub ( super ) fn construct_object ( & mut self , id : Id ) -> Result < ( ) , TreeError > { self . construct_simple ( id . clone ( ) , NodeData :: Object { items : HashMap :: new ( ) , id , } , ) . map ( | _ | ( ) ) }
Constructs a new empty object within the `Tree`.
Constructs a new empty object within the ` Tree ` .
&mut self
id
Id