pub struct ModuleInner {
pub name: String,
pub url: String,
pub code: Option<Gc<CompiledCode>>,
pub meta: ModuleMeta,
pub cells: Vec<Gc<Cell>>,
pub dependencies: Vec<Option<Gc<ModuleRecord>>>,
pub status: ModuleStatus,
pub kind: ModuleKind,
pub namespace: Option<Gc<JsObject>>,
pub import_meta: Option<Gc<JsObject>>,
}Expand description
Everything a module record holds; see ModuleRecord.
Fields§
§name: StringCanonical identity: the cache key, and what a cycle compares.
url: StringWhat import.meta.url reports.
code: Option<Gc<CompiledCode>>The compiled body, or None for a JSON/text/bytes module.
meta: ModuleMetaThe tables the compiler produced.
cells: Vec<Gc<Cell>>One cell per closure variable of the body; the body reads its bindings here.
dependencies: Vec<Option<Gc<ModuleRecord>>>Resolved dependencies, parallel to meta.requests.
status: ModuleStatusWhere it is in its lifetime.
kind: ModuleKindWhat kind of module it is.
namespace: Option<Gc<JsObject>>The namespace object, built on first use.
import_meta: Option<Gc<JsObject>>import.meta, built at load time.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ModuleInner
impl !Send for ModuleInner
impl !Sync for ModuleInner
impl !UnwindSafe for ModuleInner
impl Forget for ModuleInner
impl Freeze for ModuleInner
impl Move for ModuleInner
impl Unpin for ModuleInner
impl UnsafeUnpin for ModuleInner
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