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

pub enum BoolExpr {
Show 15 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)

Tuple Fields of Eq

0: &'static str1: Expr
Ne(&'static strExpr)

Tuple Fields of Ne

0: &'static str1: Expr
Lt(&'static strExpr)

Tuple Fields of Lt

0: &'static str1: Expr
Gt(&'static strExpr)

Tuple Fields of Gt

0: &'static str1: Expr
Le(&'static strExpr)

Tuple Fields of Le

0: &'static str1: Expr
Ge(&'static strExpr)

Tuple Fields of Ge

0: &'static str1: Expr
Like(&'static strExpr)

Tuple Fields of Like

0: &'static str1: Expr

Tuple Fields of AllOf

0: Vec<BoolExpr, Global>

Tuple Fields of And

0: Box<BoolExpr, Global>1: Box<BoolExpr, Global>

Tuple Fields of Or

0: Box<BoolExpr, Global>1: Box<BoolExpr, Global>

Tuple Fields of Not

0: Box<BoolExpr, Global>
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.

Fields of Subquery

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

Tuple Fields of In

0: &'static str1: Vec<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.

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.