pub enum BinaryOp {
Arithmetic(ArithmeticOp),
Bitwise(BitwiseOp),
Relational(RelationalOp),
Logical(LogicalOp),
Comma,
}
Expand description
This represents a binary operation between two values.
Variants§
Arithmetic(ArithmeticOp)
Numeric operation.
see: NumOp
Bitwise(BitwiseOp)
Bitwise operation.
see: BitOp
.
Relational(RelationalOp)
Comparative operation.
see: CompOp
.
Logical(LogicalOp)
Logical operation.
see: LogOp
.
Comma
Comma operation.
Trait Implementations§
source§impl From<ArithmeticOp> for BinaryOp
impl From<ArithmeticOp> for BinaryOp
source§fn from(op: ArithmeticOp) -> Self
fn from(op: ArithmeticOp) -> Self
Converts to this type from the input type.
source§impl From<RelationalOp> for BinaryOp
impl From<RelationalOp> for BinaryOp
source§fn from(op: RelationalOp) -> Self
fn from(op: RelationalOp) -> Self
Converts to this type from the input type.
source§impl PartialEq for BinaryOp
impl PartialEq for BinaryOp
source§impl TryFrom<Punctuator> for BinaryOp
impl TryFrom<Punctuator> for BinaryOp
impl Copy for BinaryOp
impl Eq for BinaryOp
impl StructuralPartialEq for BinaryOp
Auto Trait Implementations§
impl RefUnwindSafe for BinaryOp
impl Send for BinaryOp
impl Sync for BinaryOp
impl Unpin for BinaryOp
impl UnwindSafe for BinaryOp
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.