Enum swc_ecma_visit::fields::RestPatField
source · pub enum RestPatField {
Span,
Dot3Token,
Arg,
TypeAnn,
}
Expand description
This enum represents fields of RestPatField
Variants§
Span
This represents span
Dot3Token
This represents dot3_token
Arg
This represents arg
TypeAnn
This represents type_ann
Implementations§
Trait Implementations§
source§impl Clone for RestPatField
impl Clone for RestPatField
source§fn clone(&self) -> RestPatField
fn clone(&self) -> RestPatField
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RestPatField
impl Debug for RestPatField
source§impl<'de> Deserialize<'de> for RestPatField
impl<'de> Deserialize<'de> for RestPatField
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for RestPatField
impl Hash for RestPatField
source§impl Ord for RestPatField
impl Ord for RestPatField
source§fn cmp(&self, other: &RestPatField) -> Ordering
fn cmp(&self, other: &RestPatField) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RestPatField
impl PartialEq for RestPatField
source§fn eq(&self, other: &RestPatField) -> bool
fn eq(&self, other: &RestPatField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RestPatField
impl PartialOrd for RestPatField
source§fn partial_cmp(&self, other: &RestPatField) -> Option<Ordering>
fn partial_cmp(&self, other: &RestPatField) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for RestPatField
impl Serialize for RestPatField
impl Copy for RestPatField
impl Eq for RestPatField
impl StructuralPartialEq for RestPatField
Auto Trait Implementations§
impl Freeze for RestPatField
impl RefUnwindSafe for RestPatField
impl Send for RestPatField
impl Sync for RestPatField
impl Unpin for RestPatField
impl UnwindSafe for RestPatField
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