Enum swc_ecma_ast::TsSignatureDecl[][src]

pub enum TsSignatureDecl {
    TsCallSignatureDecl(TsCallSignatureDecl),
    TsConstructSignatureDecl(TsConstructSignatureDecl),
    TsMethodSignature(TsMethodSignature),
    TsFnType(TsFnType),
    TsConstructorType(TsConstructorType),
}

Variants

TsCallSignatureDecl(TsCallSignatureDecl)
TsConstructSignatureDecl(TsConstructSignatureDecl)
TsMethodSignature(TsMethodSignature)
TsFnType(TsFnType)
TsConstructorType(TsConstructorType)

Implementations

impl TsSignatureDecl[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]

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]

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_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]

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_fn_type(&self) -> bool[src]

Returns true if self is of variant TsFnType.

pub fn expect_ts_fn_type(self) -> TsFnType where
    Self: Debug
[src]

Unwraps the value, yielding the content of TsFnType.

Panics

Panics if the value is not TsFnType, with a panic message including the content of self.

pub fn ts_fn_type(self) -> Option<TsFnType>[src]

Returns Some if self is of variant TsFnType, and None otherwise.

pub fn is_ts_constructor_type(&self) -> bool[src]

Returns true if self is of variant TsConstructorType.

pub fn expect_ts_constructor_type(self) -> TsConstructorType where
    Self: Debug
[src]

Unwraps the value, yielding the content of TsConstructorType.

Panics

Panics if the value is not TsConstructorType, with a panic message including the content of self.

pub fn ts_constructor_type(self) -> Option<TsConstructorType>[src]

Returns Some if self is of variant TsConstructorType, and None otherwise.

Trait Implementations

impl Clone for TsSignatureDecl[src]

impl Debug for TsSignatureDecl[src]

impl<'de> Deserialize<'de> for TsSignatureDecl[src]

impl Eq for TsSignatureDecl[src]

impl EqIgnoreSpan for TsSignatureDecl[src]

impl From<TsCallSignatureDecl> for TsSignatureDecl[src]

impl From<TsConstructSignatureDecl> for TsSignatureDecl[src]

impl From<TsConstructorType> for TsSignatureDecl[src]

impl From<TsFnType> for TsSignatureDecl[src]

impl From<TsMethodSignature> for TsSignatureDecl[src]

impl Hash for TsSignatureDecl[src]

impl PartialEq<TsSignatureDecl> for TsSignatureDecl[src]

impl Serialize for TsSignatureDecl[src]

impl Spanned for TsSignatureDecl[src]

impl StructuralEq for TsSignatureDecl[src]

impl StructuralPartialEq for TsSignatureDecl[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.