pub enum BinOp {
Num(NumOp),
Bit(BitOp),
Comp(CompOp),
Log(LogOp),
Assign(AssignOp),
Comma,
}Expand description
This represents a binary operation between two values.
Variants§
Num(NumOp)
Numeric operation.
see: NumOp
Bit(BitOp)
Bitwise operation.
see: BitOp.
Comp(CompOp)
Comparitive operation.
see: CompOp.
Log(LogOp)
Logical operation.
see: LogOp.
Assign(AssignOp)
Assign operation.
see: AssignOp.
Comma
Comma operation.
Trait Implementations§
Source§impl Trace for BinOp
impl Trace for BinOp
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
Source§impl TryInto<BinOp> for Punctuator
impl TryInto<BinOp> for Punctuator
impl Copy for BinOp
impl StructuralPartialEq for BinOp
Auto Trait Implementations§
impl Freeze for BinOp
impl RefUnwindSafe for BinOp
impl Send for BinOp
impl Sync for BinOp
impl Unpin for BinOp
impl UnwindSafe for BinOp
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