pub enum RelationalExpr {
Equality {
left: ValueExpr,
op: EqualityOp,
right: ValueExpr,
},
Comparison {
left: ValueExpr,
op: ComparisonOp,
right: ValueExpr,
},
Like {
expr: ValueExpr,
pattern: String,
escape: Option<String>,
negated: bool,
},
Between {
expr: ValueExpr,
lower: ValueExpr,
upper: ValueExpr,
negated: bool,
},
In {
expr: ValueExpr,
values: Vec<ValueLiteral>,
negated: bool,
},
IsNull {
expr: ValueExpr,
negated: bool,
},
}Expand description
Relational expressions - produce boolean results from value comparisons
Variants§
Equality
Equality comparison: =, <>, !=
Comparison
Simple comparison: >, >=, <, <=
Like
LIKE pattern matching
Between
BETWEEN range check
In
IN list membership
IsNull
IS NULL / IS NOT NULL
Trait Implementations§
Source§impl Clone for RelationalExpr
impl Clone for RelationalExpr
Source§fn clone(&self) -> RelationalExpr
fn clone(&self) -> RelationalExpr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelationalExpr
impl Debug for RelationalExpr
Source§impl Display for RelationalExpr
impl Display for RelationalExpr
Source§impl PartialEq for RelationalExpr
impl PartialEq for RelationalExpr
impl StructuralPartialEq for RelationalExpr
Auto Trait Implementations§
impl Freeze for RelationalExpr
impl RefUnwindSafe for RelationalExpr
impl Send for RelationalExpr
impl Sync for RelationalExpr
impl Unpin for RelationalExpr
impl UnsafeUnpin for RelationalExpr
impl UnwindSafe for RelationalExpr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more