pub fn add_child(&'a self, child: &'a Object<'a>) {
		if child.parent.clone().into_inner().is_some() {
			let child_parent = child.parent.clone().into_inner().unwrap();
			child_parent.remove_child(child);
		}
		child.parent.replace(Some(Box::new(self)));

		let mut children = self.children.clone().into_inner();
		children.push(Box::new(child));
		self.children.replace(children);
	}
/// Adds `child` as a new child of object.
Adds `child` as a new child of object.
Adds ` child ` as a new child of object .
pub fn add_child(&'a self, child: &'a Object<'a>) {
		if child.parent.clone().into_inner().is_some() {
			let child_parent = child.parent.clone().into_inner().unwrap();
			child_parent.remove_child(child);
		}
		child.parent.replace(Some(Box::new(self)));
		let mut children = self.children.clone().into_inner();
		children.push(Box::new(child));
		self.children.replace(children);
	}
pub fn add_child ( & ' a self , child : & ' a Object < ' a > ) { if child . parent . clone ( ) . into_inner ( ) . is_some ( ) { let child_parent = child . parent . clone ( ) . into_inner ( ) . unwrap ( ) ; child_parent . remove_child ( child ) ; } child . parent . replace ( Some ( Box :: new ( self ) ) ) ; let mut children = self . children . clone ( ) . into_inner ( ) ; children . push ( Box :: new ( child ) ) ; self . children . replace ( children ) ; }
Adds `child` as a new child of object.
Adds ` child ` as a new child of object .
&'a self
child
&'a Object<'a>
&'a self
child
&'a Object<'a>