pub struct ModuleManager {
pub run_file_paths: Vec<Rc<str>>,
pub module_name_and_path_map: HashMap<String, String>,
pub module_path_and_names_map: HashMap<String, Vec<String>>,
pub current_module_path: String,
pub current_module_name: String,
pub current_file_index: usize,
pub entry_path: String,
pub display_entry_rc: Option<Rc<str>>,
pub hide_file_paths_in_output: bool,
pub imported_module_environments: HashMap<String, Box<ImportedModuleEnvironment>>,
}Fields§
§run_file_paths: Vec<Rc<str>>§module_name_and_path_map: HashMap<String, String>§module_path_and_names_map: HashMap<String, Vec<String>>§current_module_path: String§current_module_name: String§current_file_index: usize§entry_path: String§display_entry_rc: Option<Rc<str>>Same Rc as the user entry slot in run_file_paths when set (file path, repl, -e, …).
hide_file_paths_in_output: bool§imported_module_environments: HashMap<String, Box<ImportedModuleEnvironment>>Implementations§
Source§impl ModuleManager
impl ModuleManager
pub fn new_empty_module_manager(initial_path: &str) -> Self
pub fn current_file_path_rc(&self) -> Rc<str>
Auto Trait Implementations§
impl Freeze for ModuleManager
impl RefUnwindSafe for ModuleManager
impl !Send for ModuleManager
impl !Sync for ModuleManager
impl Unpin for ModuleManager
impl UnsafeUnpin for ModuleManager
impl UnwindSafe for ModuleManager
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