pub trait IntoExprList {
// Required method
fn into_expr_list(self) -> Vec<Expr>;
}Expand description
A list of expressions: a tuple, an array, a Vec, () for none, or a single
expression standing for a one-element list.
Function arguments, IN (..) operands, AND chains and row constructors all
take one of these, so f("LEAD", ("created_date", 1, f("NOW", ()))) works
with a heterogeneous tuple while in_(ids) works with a Vec.
A tuple is how a heterogeneous list is written — Rust has no variadics, and
this is the same trick that makes a tuple of Mods a Mod.
Required Methods§
Sourcefn into_expr_list(self) -> Vec<Expr>
fn into_expr_list(self) -> Vec<Expr>
Perform the conversion.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl IntoExprList for &'static str
impl IntoExprList for &'static str
fn into_expr_list(self) -> Vec<Expr>
Source§impl IntoExprList for ()
No expressions at all — f("NOW", ()).
impl IntoExprList for ()
No expressions at all — f("NOW", ()).