pub struct ModuleInfo {
pub id: ModuleId,
pub path: PathBuf,
pub specifier: Option<String>,
pub is_external: bool,
pub imports: ImportTracker,
pub exports: ExportTracker,
pub dependencies: FxHashSet<ModuleId>,
pub dependents: FxHashSet<ModuleId>,
pub is_processed: bool,
pub resolution_errors: Vec<ResolutionFailure>,
}Expand description
Information about a module in the dependency graph
Fields§
§id: ModuleIdUnique identifier
path: PathBufResolved file path
specifier: Option<String>Original specifier (for external modules)
is_external: boolWhether this is an external module (from node_modules)
imports: ImportTrackerImport tracking for this module
exports: ExportTrackerExport tracking for this module
dependencies: FxHashSet<ModuleId>Modules this module imports from
dependents: FxHashSet<ModuleId>Modules that import this module
is_processed: boolWhether this module has been fully processed
resolution_errors: Vec<ResolutionFailure>Resolution errors encountered
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleInfo
impl RefUnwindSafe for ModuleInfo
impl Send for ModuleInfo
impl Sync for ModuleInfo
impl Unpin for ModuleInfo
impl UnsafeUnpin for ModuleInfo
impl UnwindSafe for ModuleInfo
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more