Skip to main content

IntoExprList

Trait IntoExprList 

Source
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§

Source

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

Source§

impl IntoExprList for ()

No expressions at all — f("NOW", ()).

Source§

impl IntoExprList for Cow<'static, str>

Source§

impl IntoExprList for String

Source§

impl IntoExprList for bool

Source§

impl IntoExprList for f32

Source§

impl IntoExprList for f64

Source§

impl IntoExprList for i8

Source§

impl IntoExprList for i16

Source§

impl IntoExprList for i32

Source§

impl IntoExprList for i64

Source§

impl IntoExprList for isize

Source§

impl IntoExprList for u8

Source§

impl IntoExprList for u16

Source§

impl IntoExprList for u32

Source§

impl IntoExprList for u64

Source§

impl IntoExprList for usize

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr, G: IntoExpr, H: IntoExpr, I: IntoExpr, J: IntoExpr, K: IntoExpr, L: IntoExpr, M: IntoExpr, N: IntoExpr, O: IntoExpr, P: IntoExpr> IntoExprList for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr, G: IntoExpr, H: IntoExpr, I: IntoExpr, J: IntoExpr, K: IntoExpr, L: IntoExpr, M: IntoExpr, N: IntoExpr, O: IntoExpr> IntoExprList for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr, G: IntoExpr, H: IntoExpr, I: IntoExpr, J: IntoExpr, K: IntoExpr, L: IntoExpr, M: IntoExpr, N: IntoExpr> IntoExprList for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr, G: IntoExpr, H: IntoExpr, I: IntoExpr, J: IntoExpr, K: IntoExpr, L: IntoExpr, M: IntoExpr> IntoExprList for (A, B, C, D, E, F, G, H, I, J, K, L, M)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr, G: IntoExpr, H: IntoExpr, I: IntoExpr, J: IntoExpr, K: IntoExpr, L: IntoExpr> IntoExprList for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr, G: IntoExpr, H: IntoExpr, I: IntoExpr, J: IntoExpr, K: IntoExpr> IntoExprList for (A, B, C, D, E, F, G, H, I, J, K)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr, G: IntoExpr, H: IntoExpr, I: IntoExpr, J: IntoExpr> IntoExprList for (A, B, C, D, E, F, G, H, I, J)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr, G: IntoExpr, H: IntoExpr, I: IntoExpr> IntoExprList for (A, B, C, D, E, F, G, H, I)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr, G: IntoExpr, H: IntoExpr> IntoExprList for (A, B, C, D, E, F, G, H)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr, G: IntoExpr> IntoExprList for (A, B, C, D, E, F, G)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr, F: IntoExpr> IntoExprList for (A, B, C, D, E, F)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr, E: IntoExpr> IntoExprList for (A, B, C, D, E)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr, D: IntoExpr> IntoExprList for (A, B, C, D)

Source§

impl<A: IntoExpr, B: IntoExpr, C: IntoExpr> IntoExprList for (A, B, C)

Source§

impl<A: IntoExpr, B: IntoExpr> IntoExprList for (A, B)

Source§

impl<A: IntoExpr> IntoExprList for (A,)

Source§

impl<T: IntoExpr, const N: usize> IntoExprList for [T; N]

Source§

impl<T: IntoExpr> IntoExprList for Vec<T>

Implementors§