pub trait LiveComponentRegistry {
// Required methods
fn ref_cast_type_id(&self) -> TypeId;
fn get_component_info(&self, name: LiveId) -> Option<LiveComponentInfo>;
fn component_type(&self) -> LiveId;
fn get_module_set(&self, set: &mut BTreeSet<LiveModuleId>);
}Required Methods§
fn ref_cast_type_id(&self) -> TypeId
fn get_component_info(&self, name: LiveId) -> Option<LiveComponentInfo>
fn component_type(&self) -> LiveId
fn get_module_set(&self, set: &mut BTreeSet<LiveModuleId>)
Implementations§
Source§impl dyn LiveComponentRegistry
impl dyn LiveComponentRegistry
pub fn is<T>(&self) -> boolwhere
T: LiveComponentRegistry + 'static,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: LiveComponentRegistry + 'static,
pub fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: LiveComponentRegistry + 'static,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".