pub struct ClassDecl { /* private fields */ }Expand description
Implementations§
Source§impl ClassDecl
impl ClassDecl
pub fn decorators(&self) -> AstChildren<TsDecorator> ⓘ
pub fn abstract_token(&self) -> Option<SyntaxToken>
pub fn class_token(&self) -> Option<SyntaxToken>
pub fn name(&self) -> Option<Name>
pub fn type_params(&self) -> Option<TsTypeParams>
pub fn extends_token(&self) -> Option<SyntaxToken>
pub fn parent(&self) -> Option<Expr>
pub fn parent_type_args(&self) -> Option<TsTypeArgs>
pub fn implements_token(&self) -> Option<SyntaxToken>
pub fn implements(&self) -> AstChildren<TsExprWithTypeArgs> ⓘ
pub fn body(&self) -> Option<ClassBody>
Trait Implementations§
Source§impl From<ClassDecl> for DefaultDecl
impl From<ClassDecl> for DefaultDecl
Source§fn from(node: ClassDecl) -> DefaultDecl
fn from(node: ClassDecl) -> DefaultDecl
Converts to this type from the input type.
impl Eq for ClassDecl
impl StructuralPartialEq for ClassDecl
Auto Trait Implementations§
impl Freeze for ClassDecl
impl RefUnwindSafe for ClassDecl
impl Send for ClassDecl
impl Sync for ClassDecl
impl Unpin for ClassDecl
impl UnwindSafe for ClassDecl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more