pub enum ModExportSpecifier<'a> {
Default {
keyword: Slice<'a>,
value: DefaultExportDeclValue<'a>,
},
Named(NamedExportDecl<'a>),
All {
star: Slice<'a>,
keyword: Slice<'a>,
name: Lit<'a>,
},
}
Expand description
Something exported from this module
Variants
Default
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
export * from 'mod';
Trait Implementations
sourceimpl<'a> Clone for ModExportSpecifier<'a>
impl<'a> Clone for ModExportSpecifier<'a>
sourcefn clone(&self) -> ModExportSpecifier<'a>
fn clone(&self) -> ModExportSpecifier<'a>
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 more
sourceimpl<'a> Debug for ModExportSpecifier<'a>
impl<'a> Debug for ModExportSpecifier<'a>
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> Node for ModExportSpecifier<'a>
impl<'a> Node for ModExportSpecifier<'a>
fn loc(&self) -> SourceLocation
sourceimpl<'a> PartialEq<ModExportSpecifier<'a>> for ModExportSpecifier<'a>
impl<'a> PartialEq<ModExportSpecifier<'a>> for ModExportSpecifier<'a>
sourcefn eq(&self, other: &ModExportSpecifier<'a>) -> bool
fn eq(&self, other: &ModExportSpecifier<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<'a> StructuralPartialEq for ModExportSpecifier<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ModExportSpecifier<'a>
impl<'a> Send for ModExportSpecifier<'a>
impl<'a> Sync for ModExportSpecifier<'a>
impl<'a> Unpin for ModExportSpecifier<'a>
impl<'a> UnwindSafe for ModExportSpecifier<'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