pub enum BinaryOperator {
Show 14 variants
Plus,
Minus,
Star,
Slash,
Percent,
And,
Or,
Equal,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
Like,
}Expand description
Binary operators in SQL.
Variants§
Plus
Addition (+).
Minus
Subtraction (-).
Star
Multiplication (*).
Slash
Division (/).
Percent
Modulo (%).
And
Logical AND.
Or
Logical OR.
Equal
Equality (=).
NotEqual
Inequality (<> or !=).
Less
Less than (<).
Greater
Greater than (>).
LessEqual
Less than or equal to (<=).
GreaterEqual
Greater than or equal to (>=).
Like
Pattern matching (LIKE).
Trait Implementations§
Source§impl AsDocument for BinaryOperator
Available on crate feature oak-pretty-print only.
impl AsDocument for BinaryOperator
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
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<'de> Deserialize<'de> for BinaryOperator
impl<'de> Deserialize<'de> for BinaryOperator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BinaryOperator
impl PartialEq for BinaryOperator
Source§impl Serialize for BinaryOperator
impl Serialize for BinaryOperator
Source§impl ToSource for BinaryOperator
impl ToSource for BinaryOperator
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
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 UnsafeUnpin 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