pub enum BinOper {
Show 32 variants
And,
Or,
Equal,
NotEqual,
SmallerThan,
SmallerThanOrEqual,
GreaterThan,
GreaterThanOrEqual,
Like,
NotLike,
ILike,
NotILike,
SimilarTo,
NotSimilarTo,
Matches,
NotMatches,
In,
NotIn,
Between,
NotBetween,
Is,
IsNot,
Add,
Sub,
Mul,
Div,
Mod,
BitAnd,
BitOr,
LShift,
RShift,
PgOperator(PgBinOper),
}Expand description
Binary operators.
These operators take two operands.
Variants§
And
Logical AND
Or
Logical OR
Equal
Equal (=)
NotEqual
Not equal (<>)
SmallerThan
Less than (<)
SmallerThanOrEqual
Less than or equal (<=)
GreaterThan
Greater than (>)
GreaterThanOrEqual
Greater than or equal (>=)
Like
LIKE
NotLike
NOT LIKE
ILike
ILIKE (case-insensitive LIKE, PostgreSQL)
NotILike
NOT ILIKE (PostgreSQL)
SimilarTo
SIMILAR TO (PostgreSQL)
NotSimilarTo
NOT SIMILAR TO (PostgreSQL)
Matches
Regex match (~ in PostgreSQL)
NotMatches
Regex not match (!~ in PostgreSQL)
In
IN
NotIn
NOT IN
Between
BETWEEN
NotBetween
NOT BETWEEN
Is
IS
IsNot
IS NOT
Add
Addition (+)
Sub
Subtraction (-)
Mul
Multiplication (*)
Div
Division (/)
Mod
Modulo (%)
BitAnd
Bitwise AND (&)
BitOr
Bitwise OR (|)
LShift
Left shift (<<)
RShift
Right shift (>>)
PgOperator(PgBinOper)
Array contains (@>)
Implementations§
Source§impl BinOper
impl BinOper
Sourcepub fn precedence(&self) -> u8
pub fn precedence(&self) -> u8
Returns the precedence of this operator.
Higher values indicate higher precedence (binds more tightly).
Sourcepub fn is_left_associative(&self) -> bool
pub fn is_left_associative(&self) -> bool
Returns whether this operator is left-associative.
Trait Implementations§
Source§impl From<LogicalChainOper> for BinOper
impl From<LogicalChainOper> for BinOper
Source§fn from(op: LogicalChainOper) -> Self
fn from(op: LogicalChainOper) -> Self
Converts to this type from the input type.
impl Copy for BinOper
impl Eq for BinOper
impl StructuralPartialEq for BinOper
Auto Trait Implementations§
impl Freeze for BinOper
impl RefUnwindSafe for BinOper
impl Send for BinOper
impl Sync for BinOper
impl Unpin for BinOper
impl UnsafeUnpin for BinOper
impl UnwindSafe for BinOper
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