Trait polars_plan::plans::visitor::RewritingVisitor

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

    // Required method
    fn mutate(
        &mut self,
        node: Self::Node,
        _arena: &mut Self::Arena,
    ) -> PolarsResult<Self::Node>;

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

Required Associated Types§

Required Methods§

source

fn mutate( &mut self, node: Self::Node, _arena: &mut Self::Arena, ) -> PolarsResult<Self::Node>

Provided Methods§

source

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

Invoked before any children of node are visited.

Implementors§