pub enum ExprBinary {
Show 21 variants
Add(ExprBinaryData),
Sub(ExprBinaryData),
Mul(ExprBinaryData),
Div(ExprBinaryData),
FloorDiv(ExprBinaryData),
Mod(ExprBinaryData),
Pow(ExprBinaryData),
Concat(ExprBinaryData),
BitwiseAnd(ExprBinaryData),
BitwiseOr(ExprBinaryData),
BitwiseXor(ExprBinaryData),
ShiftLeft(ExprBinaryData),
ShiftRight(ExprBinaryData),
Equal(ExprBinaryData),
NotEqual(ExprBinaryData),
LessThan(ExprBinaryData),
LessEqual(ExprBinaryData),
GreaterThan(ExprBinaryData),
GreaterEqual(ExprBinaryData),
LogicalAnd(ExprBinaryData),
LogicalOr(ExprBinaryData),
}
Expand description
binary operation. lhs OP rhs
Variants§
Add(ExprBinaryData)
lhs + rhs
Sub(ExprBinaryData)
lhs - rhs
Mul(ExprBinaryData)
lhs * rhs
Div(ExprBinaryData)
lhs / rhs
: float division
FloorDiv(ExprBinaryData)
lhs // rhs
: floor division
Mod(ExprBinaryData)
lhs % rhs
Pow(ExprBinaryData)
lhs ^ rhs
, right associative
Concat(ExprBinaryData)
lhs .. rhs
, right associative
BitwiseAnd(ExprBinaryData)
lhs & rhs
BitwiseOr(ExprBinaryData)
lhs | rhs
BitwiseXor(ExprBinaryData)
lhs ~ rhs
ShiftLeft(ExprBinaryData)
lhs << rhs
ShiftRight(ExprBinaryData)
lhs >> rhs
Equal(ExprBinaryData)
lhs == rhs
NotEqual(ExprBinaryData)
lhs ~= rhs
LessThan(ExprBinaryData)
lhs < rhs
LessEqual(ExprBinaryData)
lhs <= rhs
GreaterThan(ExprBinaryData)
lhs > rhs
GreaterEqual(ExprBinaryData)
lhs >= rhs
LogicalAnd(ExprBinaryData)
lhs and rhs
LogicalOr(ExprBinaryData)
lhs or rhs
Trait Implementations§
Source§impl Clone for ExprBinary
impl Clone for ExprBinary
Source§fn clone(&self) -> ExprBinary
fn clone(&self) -> ExprBinary
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ExprBinary
impl !RefUnwindSafe for ExprBinary
impl !Send for ExprBinary
impl !Sync for ExprBinary
impl Unpin for ExprBinary
impl !UnwindSafe for ExprBinary
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