Trait polars_plan::plans::visitor::Visitor

source ·
pub trait Visitor {
    type Node;
    type Arena;

    // Provided methods
    fn pre_visit(
        &mut self,
        _node: &Self::Node,
        _arena: &Self::Arena,
    ) -> PolarsResult<VisitRecursion> { ... }
    fn post_visit(
        &mut self,
        _node: &Self::Node,
        _arena: &Self::Arena,
    ) -> PolarsResult<VisitRecursion> { ... }
}

Required Associated Types§

Provided Methods§

source

fn pre_visit( &mut self, _node: &Self::Node, _arena: &Self::Arena, ) -> PolarsResult<VisitRecursion>

Invoked before any children of node are visited.

source

fn post_visit( &mut self, _node: &Self::Node, _arena: &Self::Arena, ) -> PolarsResult<VisitRecursion>

Invoked after all children of node are visited. Default implementation does nothing.

Implementors§