Trait IntoExpr

Source
pub trait IntoExpr<'column, S> {
    type Typ: MyTyp;

    // Required method
    fn into_expr(self) -> Expr<'column, S, Self::Typ>;
}
Expand description

Trait for all values that can be used as expressions in queries.

Required Associated Types§

Source

type Typ: MyTyp

The type of the expression.

Required Methods§

Source

fn into_expr(self) -> Expr<'column, S, Self::Typ>

Turn this value into an Expr.

Implementations on Foreign Types§

Source§

impl<'column, S> IntoExpr<'column, S> for &str

Source§

type Typ = String

Source§

fn into_expr(self) -> Expr<'column, S, Self::Typ>

Source§

impl<'column, S> IntoExpr<'column, S> for &[u8]

Source§

type Typ = Vec<u8>

Source§

fn into_expr(self) -> Expr<'column, S, Self::Typ>

Source§

impl<'column, S> IntoExpr<'column, S> for bool

Source§

type Typ = bool

Source§

fn into_expr(self) -> Expr<'column, S, Self::Typ>

Source§

impl<'column, S> IntoExpr<'column, S> for f64

Source§

type Typ = f64

Source§

fn into_expr(self) -> Expr<'column, S, Self::Typ>

Source§

impl<'column, S> IntoExpr<'column, S> for i64

Source§

type Typ = i64

Source§

fn into_expr(self) -> Expr<'column, S, Self::Typ>

Source§

impl<'column, S> IntoExpr<'column, S> for String

Source§

type Typ = String

Source§

fn into_expr(self) -> Expr<'column, S, Self::Typ>

Source§

impl<'column, S> IntoExpr<'column, S> for Vec<u8>

Source§

type Typ = Vec<u8>

Source§

fn into_expr(self) -> Expr<'column, S, Self::Typ>

Source§

impl<'column, S, T> IntoExpr<'column, S> for &T
where T: IntoExpr<'column, S> + Clone,

Source§

type Typ = <T as IntoExpr<'column, S>>::Typ

Source§

fn into_expr(self) -> Expr<'column, S, Self::Typ>

Source§

impl<'column, S, T: IntoExpr<'column, S, Typ = X>, X: MyTyp<Sql: Nullable>> IntoExpr<'column, S> for Option<T>

Source§

type Typ = Option<X>

Source§

fn into_expr(self) -> Expr<'column, S, Self::Typ>

Implementors§

Source§

impl<'column, S> IntoExpr<'column, S> for UnixEpoch

Source§

impl<'column, S, T: Table> IntoExpr<'column, S> for TableRow<T>

Source§

type Typ = T

Source§

impl<'column, S, T: MyTyp> IntoExpr<'column, S> for Expr<'column, S, T>

Source§

type Typ = T