Continues visiting nodes with `f` depending on the current [`TreeNodeRecursion`] value and the fact that `f` is visiting the current node's sibling.
(
self,
f: F,
)
| 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. |
| 552 | pub fn visit_sibling<F: FnOnce() -> Result<TreeNodeRecursion>>( |
| 553 | self, |
| 554 | f: F, |
| 555 | ) -> Result<TreeNodeRecursion> { |
| 556 | match self { |
| 557 | TreeNodeRecursion::Continue | TreeNodeRecursion::Jump => f(), |
| 558 | TreeNodeRecursion::Stop => Ok(self), |
| 559 | } |
| 560 | } |
| 561 | |
| 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. |
no outgoing calls
no test coverage detected