pub trait ComponentFactory: Clone {
type Component;
// Required method
fn create(&self, host: &HostInfo) -> Self::Component;
}
Expand description
A component factory that can create a component.
This can return a specialized component based on information about the current host
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.