pub trait ComponentDefinitionRegistryFacade {
// Required methods
fn is_registered(&self, target: TypeId) -> bool;
fn is_name_registered(&self, name: &str) -> bool;
}Expand description
A read-only facade of a ComponentDefinitionRegistry safe to use in registration conditions.
Required Methods§
Sourcefn is_registered(&self, target: TypeId) -> bool
fn is_registered(&self, target: TypeId) -> bool
Checks if given type is present in this registry.
Sourcefn is_name_registered(&self, name: &str) -> bool
fn is_name_registered(&self, name: &str) -> bool
Checks if there’s a definition with given name.