Continues visiting nodes with `f` depending on the current [`TreeNodeRecursion`] value and the fact that `f` is visiting the current node's children.
(
self,
f: F,
)
| 537 | /// Continues visiting nodes with `f` depending on the current [`TreeNodeRecursion`] |
| 538 | /// value and the fact that `f` is visiting the current node's children. |
| 539 | pub fn visit_children<F: FnOnce() -> Result<TreeNodeRecursion>>( |
| 540 | self, |
| 541 | f: F, |
| 542 | ) -> Result<TreeNodeRecursion> { |
| 543 | match self { |
| 544 | TreeNodeRecursion::Continue => f(), |
| 545 | TreeNodeRecursion::Jump => Ok(TreeNodeRecursion::Continue), |
| 546 | TreeNodeRecursion::Stop => Ok(self), |
| 547 | } |
| 548 | } |
| 549 | |
| 550 | /// Continues visiting nodes with `f` depending on the current [`TreeNodeRecursion`] |
| 551 | /// value and the fact that `f` is visiting the current node's sibling. |
no outgoing calls
no test coverage detected