pub struct ComponentRegistry { /* private fields */ }Expand description
Registry of all built-in components.
Implementations§
Source§impl ComponentRegistry
impl ComponentRegistry
Sourcepub fn get(&self, name: &str) -> Option<&ComponentDescriptor>
pub fn get(&self, name: &str) -> Option<&ComponentDescriptor>
Look up a component by name.
Sourcepub fn resolve_view_type(&self, name: &str) -> Option<ViewType>
pub fn resolve_view_type(&self, name: &str) -> Option<ViewType>
Resolve a component name to a ViewType.
Sourcepub fn component_names(&self) -> Vec<&'static str>
pub fn component_names(&self) -> Vec<&'static str>
List all registered component names.
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 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