Trait swc_ecma_utils::ModuleItemLike [−][src]
pub trait ModuleItemLike: StmtLike { fn try_into_module_decl(self) -> Result<ModuleDecl, Self> { ... } fn try_from_module_decl(decl: ModuleDecl) -> Result<Self, ModuleDecl> { ... } }
Provided methods
fn try_into_module_decl(self) -> Result<ModuleDecl, Self>
fn try_from_module_decl(decl: ModuleDecl) -> Result<Self, ModuleDecl>