pub enum Operator {
Eq,
NotEq,
Gt,
Gte,
Lt,
Lte,
And,
Or,
Add,
Sub,
}Expand description
Equalities, inequalities, and boolean operations over possibly null values.
For most operations, if either side is null, the result is null.
The Boolean operators (And, Or) obey Kleene (three-valued) logic.
Variants§
Eq
Expressions are equal.
NotEq
Expressions are not equal.
Gt
Expression is greater than another
Gte
Expression is greater or equal to another
Lt
Expression is less than another
Lte
Expression is less or equal to another
And
Boolean AND (∧).
Or
Boolean OR (∨).
Add
The sum of the arguments.
Errs at runtime if the sum would overflow or underflow.
Sub
The difference between the arguments.
Errs at runtime if the sum would overflow or underflow.
The result is null at any index that either input is null.
Implementations§
Trait Implementations§
Source§impl PartialOrd for Operator
impl PartialOrd for Operator
impl Copy for Operator
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more