(&self)
| 117 | } |
| 118 | |
| 119 | pub fn parent(&self) -> Option<Node<'a>> { |
| 120 | self.parent_id() |
| 121 | .map(|id| self.tree_state.node_by_id(id).unwrap()) |
| 122 | } |
| 123 | |
| 124 | pub fn filtered_parent(&self, filter: &impl Fn(&Node) -> FilterResult) -> Option<Node<'a>> { |
| 125 | let mut current = self.parent()?; |
no test coverage detected