Skip to main content

rewrite_scalar_expression

Function rewrite_scalar_expression 

Source
pub fn rewrite_scalar_expression(
    expression: &mut ScalarExpr,
    rewrite: &mut dyn FnMut(&mut ScalarExpr),
)
Expand description

Visit one scalar-expression tree in post-order and rewrite each node once.

Query-owned callers that need scope-sensitive rewriting can use this entry point without duplicating the exhaustive ScalarExpr traversal.