conformal_vst_wrapper

Trait ComponentFactory

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

Source

type Component

The type of component that this factory creates

Required Methods§

Source

fn create(&self, host: &HostInfo) -> Self::Component

Create a component

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.

Implementors§

Source§

impl<C, F: Fn(&HostInfo) -> C + Clone> ComponentFactory for F