pub type ConstantEvaluator<'a> = dyn Fn(&ScalarExpr, &[SQLParam]) -> Result<Value, SQLError> + 'a;
Evaluates a scalar with the caller’s parameter values and without runtime function hooks.