swc_core::ecma::utils

Trait ModuleItemLike

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> { ... }
}
Available on crate features __ecma and __utils only.

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§