ComponentDefinitionRegistryFacade

Trait ComponentDefinitionRegistryFacade 

Source
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§

Source

fn is_registered(&self, target: TypeId) -> bool

Checks if given type is present in this registry.

Source

fn is_name_registered(&self, name: &str) -> bool

Checks if there’s a definition with given name.

Implementors§