Enum swc_ecma_visit::fields::TsTypeParamField
source · pub enum TsTypeParamField {
Span,
Name,
IsIn,
IsOut,
IsConst,
Constraint,
Default,
}
Expand description
This enum represents fields of TsTypeParamField
Variants§
Span
This represents span
Name
This represents name
IsIn
This represents is_in
IsOut
This represents is_out
IsConst
This represents is_const
Constraint
This represents constraint
Default
This represents default
Implementations§
Trait Implementations§
source§impl Clone for TsTypeParamField
impl Clone for TsTypeParamField
source§fn clone(&self) -> TsTypeParamField
fn clone(&self) -> TsTypeParamField
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 TsTypeParamField
impl Debug for TsTypeParamField
source§impl<'de> Deserialize<'de> for TsTypeParamField
impl<'de> Deserialize<'de> for TsTypeParamField
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 TsTypeParamField
impl Hash for TsTypeParamField
source§impl Ord for TsTypeParamField
impl Ord for TsTypeParamField
source§fn cmp(&self, other: &TsTypeParamField) -> Ordering
fn cmp(&self, other: &TsTypeParamField) -> 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 TsTypeParamField
impl PartialEq for TsTypeParamField
source§fn eq(&self, other: &TsTypeParamField) -> bool
fn eq(&self, other: &TsTypeParamField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TsTypeParamField
impl PartialOrd for TsTypeParamField
source§fn partial_cmp(&self, other: &TsTypeParamField) -> Option<Ordering>
fn partial_cmp(&self, other: &TsTypeParamField) -> 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 TsTypeParamField
impl Serialize for TsTypeParamField
impl Copy for TsTypeParamField
impl Eq for TsTypeParamField
impl StructuralPartialEq for TsTypeParamField
Auto Trait Implementations§
impl Freeze for TsTypeParamField
impl RefUnwindSafe for TsTypeParamField
impl Send for TsTypeParamField
impl Sync for TsTypeParamField
impl Unpin for TsTypeParamField
impl UnwindSafe for TsTypeParamField
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