Enum dprint_swc_ecma_ast_view::BinaryOp [−]
pub enum BinaryOp {
Show 25 variants
EqEq,
NotEq,
EqEqEq,
NotEqEq,
Lt,
LtEq,
Gt,
GtEq,
LShift,
RShift,
ZeroFillRShift,
Add,
Sub,
Mul,
Div,
Mod,
BitOr,
BitXor,
BitAnd,
LogicalOr,
LogicalAnd,
In,
InstanceOf,
Exp,
NullishCoalescing,
}
Variants
==
!=
===
!==
<
<=
>
>=
<<
>>
>>>
+
-
*
/
%
|
^
&
||
&&
in
instanceof
**
??
Implementations
impl BinaryOp
impl BinaryOp
pub fn precedence(self) -> u8
Trait Implementations
impl<'de> Deserialize<'de> for BinaryOp
impl<'de> Deserialize<'de> for BinaryOp
pub fn deserialize<D>(
deserializer: D
) -> Result<BinaryOp, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<BinaryOp, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl EqIgnoreSpan for BinaryOp
impl EqIgnoreSpan for BinaryOp
pub fn eq_ignore_span(&self, other: &BinaryOp) -> bool
impl<V> FoldWith<V> for BinaryOp where
V: Fold,
impl<V> FoldWith<V> for BinaryOp where
V: Fold,
impl PartialOrd<BinaryOp> for BinaryOp
impl PartialOrd<BinaryOp> for BinaryOp
pub fn partial_cmp(&self, other: &BinaryOp) -> Option<Ordering>
pub fn partial_cmp(&self, other: &BinaryOp) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<V> VisitAllWith<V> for BinaryOp where
V: VisitAll,
impl<V> VisitAllWith<V> for BinaryOp where
V: VisitAll,
pub fn visit_all_with(&self, _parent: &(dyn Node + 'static), v: &mut V)
pub fn visit_all_children_with(&self, _visitor: &mut V)
pub fn visit_all_children_with(&self, _visitor: &mut V)
Visit children nodes of self with v
impl<V> VisitMutWith<V> for BinaryOp where
V: VisitMut,
impl<V> VisitMutWith<V> for BinaryOp where
V: VisitMut,
pub fn visit_mut_with(&mut self, v: &mut V)
pub fn visit_mut_children_with(&mut self, _visitor: &mut V)
impl<V> VisitWith<V> for BinaryOp where
V: Visit,
impl<V> VisitWith<V> for BinaryOp where
V: Visit,
pub fn visit_with(&self, _parent: &(dyn Node + 'static), v: &mut V)
pub fn visit_children_with(&self, _visitor: &mut V)
pub fn visit_children_with(&self, _visitor: &mut V)
Visit children nodes of self with v
impl StructuralEq for BinaryOp
impl StructuralPartialEq for BinaryOp
Auto Trait Implementations
impl RefUnwindSafe for BinaryOp
impl UnwindSafe for BinaryOp
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more