fn replace_node(&mut self, new: Node) -> Result<(), JsValue> {
		self.key = new.key;
		self.contents = new.contents;
		self.element.get()?.set_outer_html(&self.html()?);
		Ok(())
	}
// Completely replace old node and its subtree with new one
Completely replace old node and its subtree with new one
Completely replace old node and its subtree with new one
fn replace_node(&mut self, new: Node) -> Result<(), JsValue> {
		self.key = new.key;
		self.contents = new.contents;
		self.element.get()?.set_outer_html(&self.html()?);
		Ok(())
	}
fn replace_node ( & mut self , new : Node ) -> Result < ( ) , JsValue > { self . key = new . key ; self . contents = new . contents ; self . element . get ( ) ? . set_outer_html ( & self . html ( ) ? ) ; Ok ( ( ) ) }
Completely replace old node and its subtree with new one
Completely replace old node and its subtree with new one
&mut self
new
Node