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

Method visit_children

datafusion/common/src/tree_node.rs:539–548  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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.

Callers 4

visit_with_subqueriesMethod · 0.80
visitMethod · 0.80
apply_implMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected