pub enum ExportDeclaration {
Named {
specifiers: Vec<ExportSpecifier>,
source: Option<String>,
},
Default {
declaration: ExportDefault,
},
Declaration {
declaration: Statement,
},
All {
exported: Option<Identifier>,
source: String,
},
}Expand description
An export declaration.
Variants§
Named
export { a, b as c } from? "..."?
Fields
§
specifiers: Vec<ExportSpecifier>Named specifiers.
Default
export default expression or export default declaration.
Fields
§
declaration: ExportDefaultThe exported expression or declaration.
Declaration
export let x = ... or export function ....
Fields
All
export * from "..." or export * as ns from "...".
Fields
§
exported: Option<Identifier>Optional namespace name for export * as ns.
Trait Implementations§
Source§impl Clone for ExportDeclaration
impl Clone for ExportDeclaration
Source§fn clone(&self) -> ExportDeclaration
fn clone(&self) -> ExportDeclaration
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 ExportDeclaration
impl Debug for ExportDeclaration
Source§impl Display for ExportDeclaration
impl Display for ExportDeclaration
impl Eq for ExportDeclaration
Source§impl PartialEq for ExportDeclaration
impl PartialEq for ExportDeclaration
impl StructuralPartialEq for ExportDeclaration
Auto Trait Implementations§
impl Freeze for ExportDeclaration
impl RefUnwindSafe for ExportDeclaration
impl Send for ExportDeclaration
impl Sync for ExportDeclaration
impl Unpin for ExportDeclaration
impl UnsafeUnpin for ExportDeclaration
impl UnwindSafe for ExportDeclaration
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