[−][src]Enum swc_ecma_ast::TsTypeElement
Variants
TsCallSignatureDecl(TsCallSignatureDecl)
TsConstructSignatureDecl(TsConstructSignatureDecl)
TsPropertySignature(TsPropertySignature)
TsMethodSignature(TsMethodSignature)
TsIndexSignature(TsIndexSignature)
Implementations
impl TsTypeElement
[src]
pub fn is_ts_call_signature_decl(&self) -> bool
[src]
Returns true
if self
is of variant TsCallSignatureDecl
.
pub fn expect_ts_call_signature_decl(self) -> TsCallSignatureDecl where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of TsCallSignatureDecl
.
Panics
Panics if the value is not TsCallSignatureDecl
, with a panic message including the content of self
.
pub fn ts_call_signature_decl(self) -> Option<TsCallSignatureDecl>
[src]
Returns Some
if self
is of variant TsCallSignatureDecl
, and None
otherwise.
pub fn is_ts_construct_signature_decl(&self) -> bool
[src]
Returns true
if self
is of variant TsConstructSignatureDecl
.
pub fn expect_ts_construct_signature_decl(self) -> TsConstructSignatureDecl where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of TsConstructSignatureDecl
.
Panics
Panics if the value is not TsConstructSignatureDecl
, with a panic message including the content of self
.
pub fn ts_construct_signature_decl(self) -> Option<TsConstructSignatureDecl>
[src]
Returns Some
if self
is of variant TsConstructSignatureDecl
, and None
otherwise.
pub fn is_ts_property_signature(&self) -> bool
[src]
Returns true
if self
is of variant TsPropertySignature
.
pub fn expect_ts_property_signature(self) -> TsPropertySignature where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of TsPropertySignature
.
Panics
Panics if the value is not TsPropertySignature
, with a panic message including the content of self
.
pub fn ts_property_signature(self) -> Option<TsPropertySignature>
[src]
Returns Some
if self
is of variant TsPropertySignature
, and None
otherwise.
pub fn is_ts_method_signature(&self) -> bool
[src]
Returns true
if self
is of variant TsMethodSignature
.
pub fn expect_ts_method_signature(self) -> TsMethodSignature where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of TsMethodSignature
.
Panics
Panics if the value is not TsMethodSignature
, with a panic message including the content of self
.
pub fn ts_method_signature(self) -> Option<TsMethodSignature>
[src]
Returns Some
if self
is of variant TsMethodSignature
, and None
otherwise.
pub fn is_ts_index_signature(&self) -> bool
[src]
Returns true
if self
is of variant TsIndexSignature
.
pub fn expect_ts_index_signature(self) -> TsIndexSignature where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of TsIndexSignature
.
Panics
Panics if the value is not TsIndexSignature
, with a panic message including the content of self
.
pub fn ts_index_signature(self) -> Option<TsIndexSignature>
[src]
Returns Some
if self
is of variant TsIndexSignature
, and None
otherwise.
Trait Implementations
impl Clone for TsTypeElement
[src]
fn clone(&self) -> TsTypeElement
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TsTypeElement
[src]
impl<'de> Deserialize<'de> for TsTypeElement
[src]
fn deserialize<D>(Deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for TsTypeElement
[src]
impl From<TsCallSignatureDecl> for TsTypeElement
[src]
fn from(v: TsCallSignatureDecl) -> Self
[src]
impl From<TsConstructSignatureDecl> for TsTypeElement
[src]
fn from(v: TsConstructSignatureDecl) -> Self
[src]
impl From<TsIndexSignature> for TsTypeElement
[src]
fn from(v: TsIndexSignature) -> Self
[src]
impl From<TsMethodSignature> for TsTypeElement
[src]
fn from(v: TsMethodSignature) -> Self
[src]
impl From<TsPropertySignature> for TsTypeElement
[src]
fn from(v: TsPropertySignature) -> Self
[src]
impl Hash for TsTypeElement
[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<TsTypeElement> for TsTypeElement
[src]
fn eq(&self, other: &TsTypeElement) -> bool
[src]
fn ne(&self, other: &TsTypeElement) -> bool
[src]
impl Serialize for TsTypeElement
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Spanned for TsTypeElement
[src]
impl StructuralEq for TsTypeElement
[src]
impl StructuralPartialEq for TsTypeElement
[src]
Auto Trait Implementations
impl RefUnwindSafe for TsTypeElement
impl Send for TsTypeElement
impl Sync for TsTypeElement
impl Unpin for TsTypeElement
impl UnwindSafe for TsTypeElement
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>,