pub trait ComponentInstanceProvider {
// Required methods
fn primary_instance(
&mut self,
type_id: TypeId
) -> Result<(ComponentInstanceAnyPtr, CastFunction), ComponentInstanceProviderError>;
fn instances(
&mut self,
type_id: TypeId
) -> Result<Vec<(ComponentInstanceAnyPtr, CastFunction)>, ComponentInstanceProviderError>;
fn instance_by_name(
&mut self,
name: &str,
type_id: TypeId
) -> Result<(ComponentInstanceAnyPtr, CastFunction), ComponentInstanceProviderError>;
}Expand description
Generic provider for component instances.