Get the parent of a position.
(&self, child: &Position<NodeId>)
| 574 | |
| 575 | /// Get the parent of a position. |
| 576 | pub fn get_parent(&self, child: &Position<NodeId>) -> Option<Position<NodeId>> { |
| 577 | self.parents.get(child).copied() |
| 578 | } |
| 579 | |
| 580 | /// Get the children of a position. |
| 581 | pub fn get_children(&self, parent: &Position<NodeId>) -> Option<&[Position<NodeId>]> { |