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.
Note: &str/String inputs are treated as identifiers, not SQL string
literals. Use lit() for literal values.
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.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".