swc_ecma_utils

Trait ModuleItemLike

source
pub trait ModuleItemLike: StmtLike {
    // Provided methods
    fn try_into_module_decl(self) -> Result<ModuleDecl, Self> { ... }
    fn try_from_module_decl(decl: ModuleDecl) -> Result<Self, ModuleDecl> { ... }
}

Provided Methods§

source

fn try_into_module_decl(self) -> Result<ModuleDecl, Self>

source

fn try_from_module_decl(decl: ModuleDecl) -> Result<Self, ModuleDecl>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ModuleItemLike for ModuleItem

source§

fn try_into_module_decl(self) -> Result<ModuleDecl, Self>

source§

fn try_from_module_decl(decl: ModuleDecl) -> Result<Self, ModuleDecl>

source§

impl ModuleItemLike for Stmt

Implementors§