pub enum ModuleExport {
Direct {
name: JsString,
value: JsValue,
},
ReExport {
source_module: JsObjectRef,
source_key: PropertyKey,
},
}Expand description
Represents a module export entry - either a direct export from this module’s environment, or a re-export from another module.
Variants§
Direct
Direct export: the binding exists in this module’s environment The value is stored but the actual live value comes from the environment
ReExport
Re-export: delegates to another module’s export Contains the source module namespace object and the property key
Trait Implementations§
Source§impl Clone for ModuleExport
impl Clone for ModuleExport
Source§fn clone(&self) -> ModuleExport
fn clone(&self) -> ModuleExport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModuleExport
impl !RefUnwindSafe for ModuleExport
impl !Send for ModuleExport
impl !Sync for ModuleExport
impl Unpin for ModuleExport
impl !UnwindSafe for ModuleExport
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