Expand description
A binary operation between 2 values
Variants
Num(NumOp)
Numeric operation
Bit(BitOp)
Bitwise operation
Comp(CompOp)
Comparitive operation
Log(LogOp)
Logical operation
Trait Implementations
sourceimpl Operator for BinOp
impl Operator for BinOp
sourcefn get_assoc(&self) -> bool
fn get_assoc(&self) -> bool
Get the associativity as a boolean that is true if it goes rightwards
sourcefn get_precedence(&self) -> u64
fn get_precedence(&self) -> u64
Get the precedence as an unsigned integer, where the lower it is, the more precedence/priority it has
sourcefn get_precedence_and_assoc(&self) -> (u64, bool)
fn get_precedence_and_assoc(&self) -> (u64, bool)
Get the precedence and associativity of this operator
sourceimpl Trace for BinOp
impl Trace for BinOp
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for BinOp
Auto Trait Implementations
impl RefUnwindSafe for BinOp
impl Send for BinOp
impl Sync for BinOp
impl Unpin for BinOp
impl UnwindSafe for BinOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more