pub struct LoadedModule {
pub name: String,
pub url: String,
pub source: Vec<u8>,
}Expand description
A host-supplied module, before it is compiled.
Fields§
§name: StringCanonical identity — the cache key, and how a cycle recognises itself.
url: Stringimport.meta.url for this module.
source: Vec<u8>The file’s bytes. Not necessarily UTF-8: a bytes module is arbitrary.
Auto Trait Implementations§
impl Forget for LoadedModule
impl Freeze for LoadedModule
impl Move for LoadedModule
impl RefUnwindSafe for LoadedModule
impl Send for LoadedModulewhere
RawVecInner: Send,
impl Sync for LoadedModulewhere
RawVecInner: Sync,
impl Unpin for LoadedModule
impl UnsafeUnpin for LoadedModule
impl UnwindSafe for LoadedModulewhere
RawVecInner: UnwindSafe,
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