pub enum ComparisonOperator {
Equals,
NotEquals,
LessThan,
LessThanOrEqualTo,
GreaterThan,
GreaterThanOrEqualTo,
IsNull,
IsNotNull,
Between,
In,
NotIn,
}Expand description
Comparison operators for binary predicates.
Variants§
Equals
Equality comparison (lhs == rhs)
NotEquals
Inequality comparison (lhs != rhs)
LessThan
Less-than comparison (lhs < rhs)
LessThanOrEqualTo
Less-than-or-equal comparison (lhs <= rhs)
GreaterThan
Greater-than comparison (lhs > rhs)
GreaterThanOrEqualTo
Greater-than-or-equal comparison (lhs >= rhs)
IsNull
Tests if value is null (lhs IS NULL)
Always returns a valid boolean, never null.
IsNotNull
Tests if value is not null (lhs IS NOT NULL)
Always returns a valid boolean, never null.
Between
Range membership test (lhs BETWEEN min AND max)
Equivalent to lhs >= min AND lhs <= max with appropriate null handling.
In
Set membership test (lhs IN (set))
Returns true if lhs matches any value in the provided set.
NotIn
Set exclusion test (lhs NOT IN (set))
Returns true if lhs doesn’t match any value in the provided set.
Trait Implementations§
Source§impl Clone for ComparisonOperator
impl Clone for ComparisonOperator
Source§fn clone(&self) -> ComparisonOperator
fn clone(&self) -> ComparisonOperator
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 ComparisonOperator
impl Debug for ComparisonOperator
Source§impl PartialEq for ComparisonOperator
impl PartialEq for ComparisonOperator
impl Copy for ComparisonOperator
impl Eq for ComparisonOperator
impl StructuralPartialEq for ComparisonOperator
Auto Trait Implementations§
impl Freeze for ComparisonOperator
impl RefUnwindSafe for ComparisonOperator
impl Send for ComparisonOperator
impl Sync for ComparisonOperator
impl Unpin for ComparisonOperator
impl UnwindSafe for ComparisonOperator
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