pub fn ancestors(&self) -> Vec<MdNodeRef> {
        let mut ancestors = Vec::new();
        walk_ancestors(self.parent.as_ref(), &mut |parent| ancestors.push(parent));
        ancestors
    }
/// Returns all ancestors of this `MdNode` all the way to the tree's root.
Returns all ancestors of this `MdNode` all the way to the tree's root.
Returns all ancestors of this ` MdNode ` all the way to the tree ' s root .
pub fn ancestors(&self) -> Vec<MdNodeRef> {
        let mut ancestors = Vec::new();
        walk_ancestors(self.parent.as_ref(), &mut |parent| ancestors.push(parent));
        ancestors
    }
pub fn ancestors ( & self ) -> Vec < MdNodeRef > { let mut ancestors = Vec :: new ( ) ; walk_ancestors ( self . parent . as_ref ( ) , & mut | parent | ancestors . push ( parent ) ) ; ancestors }
Returns all ancestors of this `MdNode` all the way to the tree's root.
Returns all ancestors of this ` MdNode ` all the way to the tree ' s root .
&self
&self