Enum datafusion_expr::Operator
source · [−]pub enum Operator {
Show 22 variants
Eq,
NotEq,
Lt,
LtEq,
Gt,
GtEq,
Plus,
Minus,
Multiply,
Divide,
Modulo,
And,
Or,
Like,
NotLike,
IsDistinctFrom,
IsNotDistinctFrom,
RegexMatch,
RegexIMatch,
RegexNotMatch,
RegexNotIMatch,
BitwiseAnd,
}
Expand description
Operators applied to expressions
Variants
Eq
Expressions are equal
NotEq
Expressions are not equal
Lt
Left side is smaller than right side
LtEq
Left side is smaller or equal to right side
Gt
Left side is greater than right side
GtEq
Left side is greater or equal to right side
Plus
Addition
Minus
Subtraction
Multiply
Multiplication operator, like *
Divide
Division operator, like /
Modulo
Remainder operator, like %
And
Logical AND, like &&
Or
Logical OR, like ||
Like
Matches a wildcard pattern
NotLike
Does not match a wildcard pattern
IsDistinctFrom
IS DISTINCT FROM
IsNotDistinctFrom
IS NOT DISTINCT FROM
RegexMatch
Case sensitive regex match
RegexIMatch
Case insensitive regex match
RegexNotMatch
Case sensitive regex not match
RegexNotIMatch
Case insensitive regex not match
BitwiseAnd
Bitwise and, like &
Trait Implementations
sourceimpl PartialOrd<Operator> for Operator
impl PartialOrd<Operator> for Operator
sourcefn partial_cmp(&self, other: &Operator) -> Option<Ordering>
fn partial_cmp(&self, other: &Operator) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Operator
impl Eq for Operator
impl StructuralEq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more