pub struct ModuleCatalog { /* private fields */ }Expand description
A module catalog — the module graph (T63).
Tracks all known modules and their dependency edges. Supports cycle detection and topological ordering for loading.
Implementations§
Source§impl ModuleCatalog
impl ModuleCatalog
Sourcepub fn register(&mut self, entry: ModuleEntry) -> &mut Self
pub fn register(&mut self, entry: ModuleEntry) -> &mut Self
Register a module in the catalog.
Sourcepub fn get(&self, iri: &str) -> Option<&ModuleEntry>
pub fn get(&self, iri: &str) -> Option<&ModuleEntry>
Get a module by IRI.
Sourcepub fn all(&self) -> Vec<&ModuleEntry>
pub fn all(&self) -> Vec<&ModuleEntry>
Get all modules.
Sourcepub fn builtins(&self) -> Vec<&ModuleEntry>
pub fn builtins(&self) -> Vec<&ModuleEntry>
Get all built-in modules.
Trait Implementations§
Source§impl Clone for ModuleCatalog
impl Clone for ModuleCatalog
Source§impl Debug for ModuleCatalog
impl Debug for ModuleCatalog
Auto Trait Implementations§
impl Freeze for ModuleCatalog
impl RefUnwindSafe for ModuleCatalog
impl Send for ModuleCatalog
impl Sync for ModuleCatalog
impl Unpin for ModuleCatalog
impl UnsafeUnpin for ModuleCatalog
impl UnwindSafe for ModuleCatalog
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