pub enum InfixOperator {
Show 37 variants
Equal,
NotEqual,
LessThan,
LessEqual,
GreaterThan,
GreaterEqual,
And,
Or,
Xor,
Add,
Subtract,
Multiply,
Divide,
Modulo,
Concat,
Like,
ILike,
NotLike,
NotILike,
Glob,
NotGlob,
Regexp,
NotRegexp,
Is,
IsNot,
IsDistinctFrom,
IsNotDistinctFrom,
Index,
JsonAccess,
JsonAccessText,
VectorDistance,
BitwiseAnd,
BitwiseOr,
BitwiseXor,
LeftShift,
RightShift,
Other,
}Expand description
Infix operator type (pre-computed at parse time for zero-allocation evaluation) This is a key optimization: instead of string comparison for every row, we match on a small enum which is faster and allocation-free.
Variants§
Equal
NotEqual
LessThan
LessEqual
GreaterThan
GreaterEqual
And
Or
Xor
Add
Subtract
Multiply
Divide
Modulo
Concat
Like
ILike
NotLike
NotILike
Glob
NotGlob
Regexp
NotRegexp
Is
IsNot
IsDistinctFrom
IsNotDistinctFrom
Index
JsonAccess
JsonAccessText
VectorDistance
BitwiseAnd
BitwiseOr
BitwiseXor
LeftShift
RightShift
Other
Implementations§
Trait Implementations§
Source§impl Clone for InfixOperator
impl Clone for InfixOperator
Source§fn clone(&self) -> InfixOperator
fn clone(&self) -> InfixOperator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InfixOperator
Source§impl Debug for InfixOperator
impl Debug for InfixOperator
impl Eq for InfixOperator
Source§impl Hash for InfixOperator
impl Hash for InfixOperator
Source§impl PartialEq for InfixOperator
impl PartialEq for InfixOperator
impl StructuralPartialEq for InfixOperator
Auto Trait Implementations§
impl Freeze for InfixOperator
impl RefUnwindSafe for InfixOperator
impl Send for InfixOperator
impl Sync for InfixOperator
impl Unpin for InfixOperator
impl UnsafeUnpin for InfixOperator
impl UnwindSafe for InfixOperator
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