pub struct ComponentRegistry { /* private fields */ }Expand description
Registry of all Phase 0 components.
Provides lookup by name and validation of component usage.
Implementations§
Source§impl ComponentRegistry
impl ComponentRegistry
Sourcepub fn get(&self, name: &str) -> Option<&dyn ComponentDef>
pub fn get(&self, name: &str) -> Option<&dyn ComponentDef>
Look up a component by name. Returns None for unknown components (E402).
Sourcepub fn component_names(&self) -> Vec<&'static str>
pub fn component_names(&self) -> Vec<&'static str>
Get all registered component names (sorted, deterministic).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComponentRegistry
impl !RefUnwindSafe for ComponentRegistry
impl !Send for ComponentRegistry
impl !Sync for ComponentRegistry
impl Unpin 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