Enum ressa::node::ModuleExport
source · pub enum ModuleExport {
Default(DefaultExportDecl),
Named(NamedExportDecl),
All(Literal),
}
Expand description
Something exported from this module
Variants
Default(DefaultExportDecl)
export default function() {};
//or
export default 1;
Named(NamedExportDecl)
export {foo} from 'mod';
//or
export {foo as bar} from 'mod';
//or
export var foo = 1;
//or
export function bar() {
}
All(Literal)
export * from 'mod';
Trait Implementations
sourceimpl Clone for ModuleExport
impl Clone for ModuleExport
sourcefn clone(&self) -> ModuleExport
fn clone(&self) -> ModuleExport
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ModuleExport
impl Debug for ModuleExport
sourceimpl PartialEq<ModuleExport> for ModuleExport
impl PartialEq<ModuleExport> for ModuleExport
sourcefn eq(&self, other: &ModuleExport) -> bool
fn eq(&self, other: &ModuleExport) -> bool
impl StructuralPartialEq for ModuleExport
Auto Trait Implementations
impl RefUnwindSafe for ModuleExport
impl Send for ModuleExport
impl Sync for ModuleExport
impl Unpin for ModuleExport
impl UnwindSafe for ModuleExport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more