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

Method visit_sibling

datafusion/common/src/tree_node.rs:552–560  ·  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 sibling.

(
        self,
        f: F,
    )

Source from the content-addressed store, hash-verified

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.

Callers 4

visit_with_subqueriesMethod · 0.80
apply_elementsMethod · 0.80
apply_ref_elementsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected