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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ModuleItemLike for ModuleItem

Source§

impl ModuleItemLike for Stmt

Implementors§