pub struct Module {
pub path: PathBuf,
pub decls: Vec<Decl>,
pub env: Rc<Env>,
pub exports: Rc<RefCell<HashMap<String, Export>>>,
}Expand description
one module of a universe
Fields§
§path: PathBufthe module’s absolute path
decls: Vec<Decl>its declarations
env: Rc<Env>its environment, with its imports linked
exports: Rc<RefCell<HashMap<String, Export>>>what it exports, by name (§8.2)
Auto Trait Implementations§
impl !RefUnwindSafe for Module
impl !Send for Module
impl !Sync for Module
impl !UnwindSafe for Module
impl Freeze for Module
impl Unpin for Module
impl UnsafeUnpin for Module
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