pub trait IntoExpr {
// Required method
fn into_expr(self) -> Expr;
}Expand description
Conversion trait for types that can be turned into an Expr.
This trait is implemented for:
Expr– returned as-is.&strandString– converted to a column reference viacol().Expression– wrapped directly in anExpr.
It is used as a generic bound throughout the builder API so that functions like
select(), SelectBuilder::order_by(), and SelectBuilder::group_by() can
accept plain strings, Expr values, or raw Expression nodes interchangeably.