Struct swc_ecma_ast::Class[][src]

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>,
}

Fields

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 Eq for Class[src]

impl EqIgnoreSpan for Class[src]

impl Hash for Class[src]

impl PartialEq<Class> for Class[src]

impl Serialize for Class[src]

impl Spanned for Class[src]

impl StructuralEq 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
[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.