pub enum ModExport<'a> {
Default(DefaultExportDecl<'a>),
Named(NamedExportDecl<'a>),
All(Lit<'a>),
}
Expand description
Something exported from this module
Variants
Default(DefaultExportDecl<'a>)
export default function() {};
//or
export default 1;
Named(NamedExportDecl<'a>)
export {foo} from 'mod';
//or
export {foo as bar} from 'mod';
//or
export var foo = 1;
//or
export function bar() {
}
All(Lit<'a>)
export * from 'mod';
Trait Implementations
sourceimpl<'a> From<ModExportSpecifier<'a>> for ModExport<'a>
impl<'a> From<ModExportSpecifier<'a>> for ModExport<'a>
sourcefn from(other: ModExportSpecifier<'a>) -> Self
fn from(other: ModExportSpecifier<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<ModExport<'a>> for ModExport<'a>
impl<'a> PartialEq<ModExport<'a>> for ModExport<'a>
impl<'a> StructuralPartialEq for ModExport<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ModExport<'a>
impl<'a> Send for ModExport<'a>
impl<'a> Sync for ModExport<'a>
impl<'a> Unpin for ModExport<'a>
impl<'a> UnwindSafe for ModExport<'a>
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