[−][src]Enum swc_ecma_ast::TsEntityName
Variants
TsQualifiedName(Box<TsQualifiedName>)
Ident(Ident)
Implementations
impl TsEntityName
[src]
pub fn is_ts_qualified_name(&self) -> bool
[src]
Returns true
if self
is of variant TsQualifiedName
.
pub fn expect_ts_qualified_name(self) -> Box<TsQualifiedName> where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of TsQualifiedName
.
Panics
Panics if the value is not TsQualifiedName
, with a panic message including the content of self
.
pub fn ts_qualified_name(self) -> Option<Box<TsQualifiedName>>
[src]
Returns Some
if self
is of variant TsQualifiedName
, 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 TsEntityName
[src]
fn clone(&self) -> TsEntityName
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TsEntityName
[src]
impl<'de> Deserialize<'de> for TsEntityName
[src]
fn deserialize<D>(Deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for TsEntityName
[src]
impl From<Box<TsQualifiedName>> for TsEntityName
[src]
fn from(v: Box<TsQualifiedName>) -> Self
[src]
impl From<Ident> for TsEntityName
[src]
impl From<TsEntityName> for TsTypeQueryExpr
[src]
fn from(v: TsEntityName) -> Self
[src]
impl From<TsEntityName> for TsModuleRef
[src]
fn from(v: TsEntityName) -> Self
[src]
impl Hash for TsEntityName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TsEntityName> for TsEntityName
[src]
fn eq(&self, other: &TsEntityName) -> bool
[src]
fn ne(&self, other: &TsEntityName) -> bool
[src]
impl Serialize for TsEntityName
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Spanned for TsEntityName
[src]
impl StructuralEq for TsEntityName
[src]
impl StructuralPartialEq for TsEntityName
[src]
Auto Trait Implementations
impl RefUnwindSafe for TsEntityName
impl Send for TsEntityName
impl Sync for TsEntityName
impl Unpin for TsEntityName
impl UnwindSafe for TsEntityName
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,