pub enum ExportEntry {
Local {
export_name: String,
var_idx: u32,
},
Indirect {
export_name: String,
module: u32,
import_name: String,
},
Star {
module: u32,
},
StarAs {
export_name: String,
module: u32,
},
}Expand description
One exported name.
The four forms are the ones §16.2.1.5 distinguishes, and they resolve differently: a local export names a variable of this module, an indirect one names a name in another module, a star export forwards everything, and a star-as export forwards the whole namespace under one name.
Variants§
Local
export { a } / export var a / export default …
Indirect
export { a as b } from "m"
Fields
§
module: u32Index into ModuleMeta::requests.
Star
export * from "m"
Fields
§
module: u32Index into ModuleMeta::requests.
StarAs
export * as ns from "m"
Trait Implementations§
Source§impl Clone for ExportEntry
impl Clone for ExportEntry
Source§impl Debug for ExportEntry
impl Debug for ExportEntry
Source§impl PartialEq for ExportEntry
impl PartialEq for ExportEntry
impl StructuralPartialEq for ExportEntry
Auto Trait Implementations§
impl Forget for ExportEntry
impl Freeze for ExportEntry
impl Move for ExportEntry
impl RefUnwindSafe for ExportEntry
impl Send for ExportEntry
impl Sync for ExportEntry
impl Unpin for ExportEntry
impl UnsafeUnpin for ExportEntry
impl UnwindSafe for ExportEntry
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