pub struct ModuleInfo {
pub id: ModuleId,
pub file_path: PathBuf,
pub imports: Vec<ImportInfo>,
pub ast: Option<Program>,
pub is_entry: bool,
}Expand description
Information about a single module (source file).
Fields§
§id: ModuleIdUnique module identifier.
file_path: PathBufAbsolute path to the source file.
imports: Vec<ImportInfo>Import declarations found in this module.
ast: Option<Program>Parsed AST program for this module.
is_entry: boolWhether this is the entry module.
Trait Implementations§
Source§impl Clone for ModuleInfo
impl Clone for ModuleInfo
Source§fn clone(&self) -> ModuleInfo
fn clone(&self) -> ModuleInfo
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 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