Enum dprint_swc_ecma_ast_view::UnaryOp [−]
pub enum UnaryOp { Minus, Plus, Bang, Tilde, TypeOf, Void, Delete, }
Variants
-
+
!
~
typeof
void
delete
Implementations
Trait Implementations
impl<'de> Deserialize<'de> for UnaryOp
impl<'de> Deserialize<'de> for UnaryOp
pub fn deserialize<D>(
deserializer: D
) -> Result<UnaryOp, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<UnaryOp, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl EqIgnoreSpan for UnaryOp
impl EqIgnoreSpan for UnaryOp
pub fn eq_ignore_span(&self, other: &UnaryOp) -> bool
impl<V> FoldWith<V> for UnaryOp where
V: Fold,
impl<V> FoldWith<V> for UnaryOp where
V: Fold,
impl PartialOrd<UnaryOp> for UnaryOp
impl PartialOrd<UnaryOp> for UnaryOp
pub fn partial_cmp(&self, other: &UnaryOp) -> Option<Ordering>
pub fn partial_cmp(&self, other: &UnaryOp) -> 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 UnaryOp where
V: VisitAll,
impl<V> VisitAllWith<V> for UnaryOp 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 UnaryOp where
V: VisitMut,
impl<V> VisitMutWith<V> for UnaryOp 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 UnaryOp where
V: Visit,
impl<V> VisitWith<V> for UnaryOp 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 UnaryOp
impl StructuralPartialEq for UnaryOp
Auto Trait Implementations
impl RefUnwindSafe for UnaryOp
impl UnwindSafe for UnaryOp
Blanket Implementations
Mutably borrows from an owned value. Read more