pub enum BinOp {
Show 21 variants
Plus,
Minus,
Mul,
Div,
IntDiv,
Pow,
Mod,
BitAnd,
BitXor,
BitOr,
BitShr,
BitShl,
Concat,
LT,
LTE,
GT,
GTE,
EQ,
NEQ,
And,
Or,
}Expand description
binop ::= ‘+’ | ‘-’ | ‘*’ | ‘/’ | ‘//’ | ‘^’ | ‘%’ |
‘&’ | ‘’ | ‘|’ | ‘>>’ | ‘<<’ | ‘..’ |
‘<’ | ‘<=’ | ‘>’ | ‘>=’ | ‘==’ | ‘=’ |
and | or
Variants§
Plus
Minus
Mul
Div
IntDiv
Pow
Mod
BitAnd
BitXor
BitOr
BitShr
BitShl
Concat
LT
LTE
GT
GTE
EQ
NEQ
And
Or
Trait Implementations§
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