Enum swc_ecma_visit::fields::TsTypeField
source · [−]pub enum TsTypeField {
Show 20 variants
TsKeywordType,
TsThisType,
TsFnOrConstructorType,
TsTypeRef,
TsTypeQuery,
TsTypeLit,
TsArrayType,
TsTupleType,
TsOptionalType,
TsRestType,
TsUnionOrIntersectionType,
TsConditionalType,
TsInferType,
TsParenthesizedType,
TsTypeOperator,
TsIndexedAccessType,
TsMappedType,
TsLitType,
TsTypePredicate,
TsImportType,
}
Expand description
This enum represents fields of TsTypeField
Variants
TsKeywordType
This represents TsKeywordType
TsThisType
This represents TsThisType
TsFnOrConstructorType
This represents TsFnOrConstructorType
TsTypeRef
This represents TsTypeRef
TsTypeQuery
This represents TsTypeQuery
TsTypeLit
This represents TsTypeLit
TsArrayType
This represents TsArrayType
TsTupleType
This represents TsTupleType
TsOptionalType
This represents TsOptionalType
TsRestType
This represents TsRestType
TsUnionOrIntersectionType
This represents TsUnionOrIntersectionType
TsConditionalType
This represents TsConditionalType
TsInferType
This represents TsInferType
TsParenthesizedType
This represents TsParenthesizedType
TsTypeOperator
This represents TsTypeOperator
TsIndexedAccessType
This represents TsIndexedAccessType
TsMappedType
This represents TsMappedType
TsLitType
This represents TsLitType
TsTypePredicate
This represents TsTypePredicate
TsImportType
This represents TsImportType
Implementations
sourceimpl TsTypeField
impl TsTypeField
Trait Implementations
sourceimpl Clone for TsTypeField
impl Clone for TsTypeField
sourcefn clone(&self) -> TsTypeField
fn clone(&self) -> TsTypeField
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 TsTypeField
impl Debug for TsTypeField
sourceimpl Hash for TsTypeField
impl Hash for TsTypeField
sourceimpl Ord for TsTypeField
impl Ord for TsTypeField
sourcefn cmp(&self, other: &TsTypeField) -> Ordering
fn cmp(&self, other: &TsTypeField) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<TsTypeField> for TsTypeField
impl PartialEq<TsTypeField> for TsTypeField
sourcefn eq(&self, other: &TsTypeField) -> bool
fn eq(&self, other: &TsTypeField) -> bool
sourceimpl PartialOrd<TsTypeField> for TsTypeField
impl PartialOrd<TsTypeField> for TsTypeField
sourcefn partial_cmp(&self, other: &TsTypeField) -> Option<Ordering>
fn partial_cmp(&self, other: &TsTypeField) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Copy for TsTypeField
impl Eq for TsTypeField
impl StructuralEq for TsTypeField
impl StructuralPartialEq for TsTypeField
Auto Trait Implementations
impl RefUnwindSafe for TsTypeField
impl Send for TsTypeField
impl Sync for TsTypeField
impl Unpin for TsTypeField
impl UnwindSafe for TsTypeField
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