Enum butane::query::BoolExpr[][src]

pub enum BoolExpr {
Show variants True, Eq(&'static strExpr), Ne(&'static strExpr), Lt(&'static strExpr), Gt(&'static strExpr), Le(&'static strExpr), Ge(&'static strExpr), Like(&'static strExpr), AllOf(Vec<BoolExpr, Global>), And(Box<BoolExpr, Global>, Box<BoolExpr, Global>), Or(Box<BoolExpr, Global>, Box<BoolExpr, Global>), Not(Box<BoolExpr, Global>), Subquery { col: &'static str, tbl2: Cow<'static, str>, tbl2_col: &'static str, expr: Box<BoolExpr, Global>, }, In(&'static strVec<SqlVal, Global>), SubqueryJoin { col: &'static str, tbl2: Cow<'static, str>, col2: Column, joins: Vec<Join, Global>, expr: Box<BoolExpr, Global>, },
}
Expand description

Abstract representation of a boolean expression.

Variants

True
Eq(&'static strExpr)
Ne(&'static strExpr)
Lt(&'static strExpr)
Gt(&'static strExpr)
Le(&'static strExpr)
Ge(&'static strExpr)
Like(&'static strExpr)
Subquery

Expression which is true if the value of col is present in the set of values of tbl2_col where expr evaluated on a row in tbl2 is true.

Show fields

Fields of Subquery

col: &'static strtbl2: Cow<'static, str>tbl2_col: &'static strexpr: Box<BoolExpr, Global>
In(&'static strVec<SqlVal, Global>)
SubqueryJoin

Expression which is true if the value of col is present in the set of values of col2 where expr evaluated on a row in tbl2 with the specified joins is true.

Show fields

Fields of SubqueryJoin

col: &'static strtbl2: Cow<'static, str>col2: Columnjoins: Vec<Join, Global>expr: Box<BoolExpr, Global>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.