Continues visiting nodes with `f` depending on the current [`TreeNodeRecursion`] value and the fact that `f` is visiting the current node's parent.
(
self,
f: F,
)
| 562 | /// Continues visiting nodes with `f` depending on the current [`TreeNodeRecursion`] |
| 563 | /// value and the fact that `f` is visiting the current node's parent. |
| 564 | pub fn visit_parent<F: FnOnce() -> Result<TreeNodeRecursion>>( |
| 565 | self, |
| 566 | f: F, |
| 567 | ) -> Result<TreeNodeRecursion> { |
| 568 | match self { |
| 569 | TreeNodeRecursion::Continue => f(), |
| 570 | TreeNodeRecursion::Jump | TreeNodeRecursion::Stop => Ok(self), |
| 571 | } |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | /// Result of tree walk / transformation APIs |
no outgoing calls
no test coverage detected