pub trait HasParent { type Node: Clone; // Required method fn parent(&self) -> Option<Self::Node>; }
Defines the parent trait.
Returns the parent of this node, if it exists.