pub struct ModuleSystem { /* private fields */ }
Implementations§
Source§impl ModuleSystem
impl ModuleSystem
pub fn new() -> Self
pub fn load_module(&mut self, path: &Path) -> Result<()>
pub fn resolve_dependencies(&mut self) -> Result<()>
pub fn compilation_order(&self) -> &[PathBuf]
pub fn merge_modules(&self) -> Result<HelixAst, HelixError>
pub fn modules(&self) -> &HashMap<PathBuf, Module>
pub fn dependency_graph(&self) -> &HashMap<PathBuf, HashSet<PathBuf>>
pub fn get_dependencies<P: AsRef<Path>>(&self, path: P) -> HashSet<PathBuf>
pub fn get_dependents<P: AsRef<Path>>(&self, path: P) -> HashSet<PathBuf>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleSystem
impl RefUnwindSafe for ModuleSystem
impl Send for ModuleSystem
impl Sync for ModuleSystem
impl Unpin for ModuleSystem
impl UnwindSafe for ModuleSystem
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