pub struct Module<T> {
pub name: String,
pub file_path: PathBuf,
pub ast: Ast<T>,
pub exports: TypeScope,
pub imports: Vec<(String, String)>,
}
Fields§
§name: String
§file_path: PathBuf
The absolute path of this module in the file system.
ast: Ast<T>
§exports: TypeScope
A TypeScope containing all exported members of this module.
imports: Vec<(String, String)>
A list of imported module. The first item in each tuple is the path under which imported module is specified in this module, the second item specifies the absolute path of the imported module in the file system. This is used to convert absolute modules to relative imports.
Implementations§
Trait Implementations§
impl<T: Eq> Eq for Module<T>
impl<T> StructuralPartialEq for Module<T>
Auto Trait Implementations§
impl<T> Freeze for Module<T>
impl<T> !RefUnwindSafe for Module<T>
impl<T> !Send for Module<T>
impl<T> !Sync for Module<T>
impl<T> Unpin for Module<T>where
T: Unpin,
impl<T> !UnwindSafe for Module<T>
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