pub trait IntoExpr {
type Sql: SqlType;
type Req;
// Required method
fn into_expr(self) -> Expr<Self::Req, Self::Sql>;
}Expand description
Converts a value into a typed expression, tagging it with the set of
tables it references (Nil for a plain literal, Cons<T, Nil> for a
bare column, or whatever Req an already-built Expr carries).
Required Associated Types§
Sourcetype Sql: SqlType
type Sql: SqlType
The SQL type this expression has. An associated type rather than a
parameter because every implementor has exactly one — a column its
declared type, a literal its leaf type — which is what lets a
mismatch report itself as Comparable/AssignsTo rather than as
an inference failure on a type nobody wrote.
type Req
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".