MCPcopy Create free account
hub / github.com/apache/datafusion / apply_impl

Method apply_impl

datafusion/common/src/tree_node.rs:201–206  ·  view source on GitHub ↗
(
            node: &'n N,
            f: &mut F,
        )

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 2

visit_childrenMethod · 0.80
apply_childrenMethod · 0.45

Tested by

no test coverage detected