pub enum BinaryOp {
Comma,
Alt,
Or,
And,
Math(Math),
Cmp(Cmp),
Assign,
Update,
UpdateMath(Math),
UpdateAlt,
}Expand description
Binary operators, such as |, ,, //, …
Variants§
Comma
Concatenation, i.e. l, r
Alt
Alternation, i.e. l // r
Or
Logical disjunction, i.e. l or r
And
Logical conjunction, i.e. l and r
Math(Math)
Mathematical operation, e.g. l + r, l - r, …
Cmp(Cmp)
Comparison operation, e.g. l == r, l <= r, …
Assign
Assignment, i.e. l = r,
Update
Update, i.e. l |= r
UpdateMath(Math)
Mathematical assignment, i.e. l += r, l -= r, …
(this is identical to r as $x | l |= . + $x, …)
UpdateAlt
l //= r
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinaryOp
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