pub fn new_child<T: MdElement + 'static>(&self, item: T) -> Self {
        let mut child_node = MdNode::new(item);
        child_node.parent = Some(Rc::downgrade(&self.0));
        let child_ref = Self(Rc::new(RefCell::new(child_node)));
        self.borrow_mut().children.push(child_ref.clone());
        child_ref
    }
/// Spawns new `MdNode` child node, automatically wrapping it in a
/// `MdNodeRef` and creating a weak link from child to itself.
Spawns new `MdNode` child node, automatically wrapping it in a
`MdNodeRef` and creating a weak link from child to itself.
Spawns new ` MdNode ` child node automatically wrapping it in a ` MdNodeRef ` and creating a weak link from child to itself .
pub fn new_child<T: MdElement + 'static>(&self, item: T) -> Self {
        let mut child_node = MdNode::new(item);
        child_node.parent = Some(Rc::downgrade(&self.0));
        let child_ref = Self(Rc::new(RefCell::new(child_node)));
        self.borrow_mut().children.push(child_ref.clone());
        child_ref
    }
pub fn new_child < T : MdElement + ' static > ( & self , item : T ) -> Self { let mut child_node = MdNode :: new ( item ) ; child_node . parent = Some ( Rc :: downgrade ( & self . 0 ) ) ; let child_ref = Self ( Rc :: new ( RefCell :: new ( child_node ) ) ) ; self . borrow_mut ( ) . children . push ( child_ref . clone ( ) ) ; child_ref }
Spawns new `MdNode` child node, automatically wrapping it in a
`MdNodeRef` and creating a weak link from child to itself.
Spawns new ` MdNode ` child node automatically wrapping it in a ` MdNodeRef ` and creating a weak link from child to itself .
&self
item
T
&self
item
T