polars_plan::utils

Function has_expr

Source
pub fn has_expr<F>(current_expr: &Expr, matches: F) -> bool
where F: Fn(&Expr) -> bool,
Expand description

Can check if an expression tree has a matching_expr. This requires a dummy expression to be created that will be used to pattern match against.