Struct swc_ecma_ast::Class
source · [−]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<Box<TsTypeParamDecl>>,
pub super_type_params: Option<Box<TsTypeParamInstantiation>>,
pub implements: Vec<TsExprWithTypeArgs>,
}
Fields
span: Span
decorators: Vec<Decorator>
body: Vec<ClassMember>
super_class: Option<Box<Expr>>
is_abstract: bool
type_params: Option<Box<TsTypeParamDecl>>
super_type_params: Option<Box<TsTypeParamInstantiation>>
implements: Vec<TsExprWithTypeArgs>
Typescript extension.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Class
impl<'de> Deserialize<'de> for Class
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for Class
impl EqIgnoreSpan for Class
fn eq_ignore_span(&self, other: &Self) -> bool
impl Eq for Class
impl StructuralEq for Class
impl StructuralPartialEq for Class
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more