(
node: &'n N,
f: &mut F,
)
| 199 | ) -> Result<TreeNodeRecursion> { |
| 200 | #[cfg_attr(feature = "recursive_protection", recursive::recursive)] |
| 201 | fn apply_impl<'n, N: TreeNode, F: FnMut(&'n N) -> Result<TreeNodeRecursion>>( |
| 202 | node: &'n N, |
| 203 | f: &mut F, |
| 204 | ) -> Result<TreeNodeRecursion> { |
| 205 | f(node)?.visit_children(|| node.apply_children(|c| apply_impl(c, f))) |
| 206 | } |
| 207 | |
| 208 | apply_impl(self, &mut f) |
| 209 | } |
nothing calls this directly
no test coverage detected