polars_plan::plans::visitor

Trait 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§