pub enum ModuleItemKind {
Statement(Statement),
Import(ImportDeclaration),
Export(ExportDeclaration),
}Expand description
The shape of a module-level item.
Variants§
Statement(Statement)
A regular statement (variable declaration, function, expression statement, etc.).
Import(ImportDeclaration)
import ... from "..."
Export(ExportDeclaration)
export { ... }, export let x = 1;, etc.
Trait Implementations§
Source§impl Clone for ModuleItemKind
impl Clone for ModuleItemKind
Source§fn clone(&self) -> ModuleItemKind
fn clone(&self) -> ModuleItemKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleItemKind
impl Debug for ModuleItemKind
Source§impl Display for ModuleItemKind
impl Display for ModuleItemKind
impl Eq for ModuleItemKind
Source§impl PartialEq for ModuleItemKind
impl PartialEq for ModuleItemKind
impl StructuralPartialEq for ModuleItemKind
Auto Trait Implementations§
impl Freeze for ModuleItemKind
impl RefUnwindSafe for ModuleItemKind
impl Send for ModuleItemKind
impl Sync for ModuleItemKind
impl Unpin for ModuleItemKind
impl UnsafeUnpin for ModuleItemKind
impl UnwindSafe for ModuleItemKind
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