pub struct ModuleInstance { /* private fields */ }Expand description
A linked module and its stable live default-export edge.
Implementations§
Source§impl ModuleInstance
impl ModuleInstance
Sourcepub fn identity(&self) -> &ModuleIdentity
pub fn identity(&self) -> &ModuleIdentity
Canonical module identity.
Sourcepub fn generation(&self) -> u64
pub fn generation(&self) -> u64
Successful replacement generation, starting at one.
Sourcepub fn default_export(&self) -> &BindingCell
pub fn default_export(&self) -> &BindingCell
Live binding followed by importers across cache replacement.
Trait Implementations§
Source§impl Clone for ModuleInstance
impl Clone for ModuleInstance
Source§fn clone(&self) -> ModuleInstance
fn clone(&self) -> ModuleInstance
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 moreAuto Trait Implementations§
impl Freeze for ModuleInstance
impl RefUnwindSafe for ModuleInstance
impl Send for ModuleInstance
impl Sync for ModuleInstance
impl Unpin for ModuleInstance
impl UnsafeUnpin for ModuleInstance
impl UnwindSafe for ModuleInstance
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