[][src]Struct swc_ecma_ast::Class

pub struct Class {
    pub span: Span,
    pub decorators: Vec<Decorator>,
    pub body: Vec<ClassMember>,
    pub super_class: Option<Box<Expr>>,
    pub is_abstract: bool,
    pub type_params: Option<TsTypeParamDecl>,
    pub super_type_params: Option<TsTypeParamInstantiation>,
    pub implements: Vec<TsExprWithTypeArgs>,


span: Spandecorators: Vec<Decorator>body: Vec<ClassMember>super_class: Option<Box<Expr>>is_abstract: booltype_params: Option<TsTypeParamDecl>super_type_params: Option<TsTypeParamInstantiation>implements: Vec<TsExprWithTypeArgs>

Typescript extension.

Trait Implementations

impl Clone for Class[src]

impl Debug for Class[src]

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

impl PartialEq<Class> for Class[src]

impl Serialize for Class[src]

impl Spanned for Class[src]

impl StructuralPartialEq for Class[src]

Auto Trait Implementations

impl RefUnwindSafe for Class

impl Send for Class

impl Sync for Class

impl Unpin for Class

impl UnwindSafe for Class

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Erased for T

impl<T> Erased for T

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.