pub enum BinaryOperator {
Show 24 variants
Plus,
Minus,
Multiply,
Divide,
IntegerDivide,
Modulo,
Equal,
NotEqual,
LessThan,
LessThanOrEqual,
GreaterThan,
GreaterThanOrEqual,
And,
Or,
Concat,
BitwiseAnd,
BitwiseOr,
LeftShift,
RightShift,
CosineDistance,
NegativeInnerProduct,
L2Distance,
JsonExtract,
JsonExtractText,
}Expand description
Binary operators for SQL expressions
Variants§
Plus
Minus
Multiply
Divide
IntegerDivide
Modulo
Equal
NotEqual
LessThan
LessThanOrEqual
GreaterThan
GreaterThanOrEqual
And
Or
Concat
BitwiseAnd
BitwiseOr
LeftShift
RightShift
CosineDistance
NegativeInnerProduct
L2Distance
JsonExtract
JsonExtractText
Implementations§
Source§impl BinaryOperator
impl BinaryOperator
Sourcepub fn is_word_operator(&self) -> bool
pub fn is_word_operator(&self) -> bool
Returns true if this operator is represented as a word (AND, OR, DIV) rather than a symbol (+, -, <, etc.)
Word operators require spaces around them in SQL, while symbolic operators do not (though spaces are optional).
Trait Implementations§
Source§impl Clone for BinaryOperator
impl Clone for BinaryOperator
Source§fn clone(&self) -> BinaryOperator
fn clone(&self) -> BinaryOperator
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 BinaryOperator
impl Debug for BinaryOperator
Source§impl PartialEq for BinaryOperator
impl PartialEq for BinaryOperator
Source§impl ToSql for BinaryOperator
impl ToSql for BinaryOperator
impl Copy for BinaryOperator
impl Eq for BinaryOperator
impl StructuralPartialEq for BinaryOperator
Auto Trait Implementations§
impl Freeze for BinaryOperator
impl RefUnwindSafe for BinaryOperator
impl Send for BinaryOperator
impl Sync for BinaryOperator
impl Unpin for BinaryOperator
impl UnwindSafe for BinaryOperator
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