Enum swc_ecma_parser::token::BinOpToken
source · [−]pub enum BinOpToken {
Show 23 variants
EqEq,
NotEq,
EqEqEq,
NotEqEq,
Lt,
LtEq,
Gt,
GtEq,
LShift,
RShift,
ZeroFillRShift,
Add,
Sub,
Mul,
Div,
Mod,
BitOr,
BitXor,
BitAnd,
Exp,
LogicalOr,
LogicalAnd,
NullishCoalescing,
}
Variants
EqEq
==
NotEq
!=
EqEqEq
===
NotEqEq
!==
Lt
<
LtEq
<=
Gt
>
GtEq
>=
LShift
<<
RShift
>>
ZeroFillRShift
>>>
Add
+
Sub
-
Mul
*
Div
/
Mod
%
BitOr
|
BitXor
^
BitAnd
&
Exp
**
LogicalOr
||
LogicalAnd
&&
NullishCoalescing
??
Implementations
sourceimpl BinOpToken
impl BinOpToken
pub fn starts_expr(&self) -> bool
sourceimpl BinOpToken
impl BinOpToken
pub const fn before_expr(self) -> bool
Trait Implementations
sourceimpl Clone for BinOpToken
impl Clone for BinOpToken
sourcefn clone(&self) -> BinOpToken
fn clone(&self) -> BinOpToken
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BinOpToken
impl Debug for BinOpToken
sourceimpl From<BinOpToken> for BinaryOp
impl From<BinOpToken> for BinaryOp
sourcefn from(t: BinOpToken) -> Self
fn from(t: BinOpToken) -> Self
Converts to this type from the input type.
sourceimpl Hash for BinOpToken
impl Hash for BinOpToken
sourceimpl PartialEq<BinOpToken> for BinOpToken
impl PartialEq<BinOpToken> for BinOpToken
sourcefn eq(&self, other: &BinOpToken) -> bool
fn eq(&self, other: &BinOpToken) -> bool
impl Copy for BinOpToken
impl Eq for BinOpToken
impl StructuralEq for BinOpToken
impl StructuralPartialEq for BinOpToken
Auto Trait Implementations
impl RefUnwindSafe for BinOpToken
impl Send for BinOpToken
impl Sync for BinOpToken
impl Unpin for BinOpToken
impl UnwindSafe for BinOpToken
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