pub struct ComponentRegistry {
pub components: HashMap<String, CjsComponent>,
pub modules: HashMap<String, CjsModule>,
}Expand description
Registry of all discovered CJS components.
Fields§
§components: HashMap<String, CjsComponent>All components indexed by IRI.
modules: HashMap<String, CjsModule>All modules indexed by IRI.
Implementations§
Source§impl ComponentRegistry
impl ComponentRegistry
pub fn new() -> Self
Sourcepub async fn register_available_modules(
&mut self,
fs: &dyn Fs,
state: &ModuleState,
) -> Result<()>
pub async fn register_available_modules( &mut self, fs: &dyn Fs, state: &ModuleState, ) -> Result<()>
Register all available modules from the module state. Uses a two-pass approach: collect all nodes from all files, merge by @id, then process.
Trait Implementations§
Source§impl Clone for ComponentRegistry
impl Clone for ComponentRegistry
Source§fn clone(&self) -> ComponentRegistry
fn clone(&self) -> ComponentRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComponentRegistry
impl RefUnwindSafe for ComponentRegistry
impl Send for ComponentRegistry
impl Sync for ComponentRegistry
impl Unpin for ComponentRegistry
impl UnsafeUnpin for ComponentRegistry
impl UnwindSafe for ComponentRegistry
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