[−][src]Enum swc_ecma_ast::TsThisTypeOrIdent
Variants
TsThisType(TsThisType)
Ident(Ident)
Implementations
impl TsThisTypeOrIdent
[src]
pub fn is_ts_this_type(&self) -> bool
[src]
Returns true
if self
is of variant TsThisType
.
pub fn expect_ts_this_type(self) -> TsThisType where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of TsThisType
.
Panics
Panics if the value is not TsThisType
, with a panic message including the content of self
.
pub fn ts_this_type(self) -> Option<TsThisType>
[src]
Returns Some
if self
is of variant TsThisType
, and None
otherwise.
pub fn is_ident(&self) -> bool
[src]
Returns true
if self
is of variant Ident
.
pub fn expect_ident(self) -> Ident where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of Ident
.
Panics
Panics if the value is not Ident
, with a panic message including the content of self
.
pub fn ident(self) -> Option<Ident>
[src]
Returns Some
if self
is of variant Ident
, and None
otherwise.
Trait Implementations
impl Clone for TsThisTypeOrIdent
[src]
pub fn clone(&self) -> TsThisTypeOrIdent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TsThisTypeOrIdent
[src]
impl<'de> Deserialize<'de> for TsThisTypeOrIdent
[src]
pub fn deserialize<D>(Deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for TsThisTypeOrIdent
[src]
impl EqIgnoreSpan for TsThisTypeOrIdent
[src]
pub fn eq_ignore_span(&self, other: &Self) -> bool
[src]
impl From<Ident> for TsThisTypeOrIdent
[src]
impl From<TsThisType> for TsThisTypeOrIdent
[src]
pub fn from(v: TsThisType) -> Self
[src]
impl Hash for TsThisTypeOrIdent
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TsThisTypeOrIdent> for TsThisTypeOrIdent
[src]
pub fn eq(&self, other: &TsThisTypeOrIdent) -> bool
[src]
pub fn ne(&self, other: &TsThisTypeOrIdent) -> bool
[src]
impl Serialize for TsThisTypeOrIdent
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Spanned for TsThisTypeOrIdent
[src]
impl StructuralEq for TsThisTypeOrIdent
[src]
impl StructuralPartialEq for TsThisTypeOrIdent
[src]
Auto Trait Implementations
impl RefUnwindSafe for TsThisTypeOrIdent
[src]
impl Send for TsThisTypeOrIdent
[src]
impl Sync for TsThisTypeOrIdent
[src]
impl Unpin for TsThisTypeOrIdent
[src]
impl UnwindSafe for TsThisTypeOrIdent
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,