Trait hotdrink_rs::examples::components::ComponentFactory [−][src]
pub trait ComponentFactory { fn name() -> &'static str; fn build<T>(n_constraints: usize) -> Component<T>
where
T: Clone + Debug + Default + 'static; }
A trait for structs that can build components of a specified size. This is used for creating components in benchmarks.
Required methods
fn name() -> &'static str
[src]
Returns the name of this factory.
fn build<T>(n_constraints: usize) -> Component<T> where
T: Clone + Debug + Default + 'static,
[src]
T: Clone + Debug + Default + 'static,
Build the component with the specified name and number of constraints.
Implementors
impl ComponentFactory for Ladder
[src]
impl ComponentFactory for Ladder
[src]impl ComponentFactory for LinearOneway
[src]
impl ComponentFactory for LinearOneway
[src]impl ComponentFactory for LinearTwoway
[src]
impl ComponentFactory for LinearTwoway
[src]impl ComponentFactory for Random
[src]
impl ComponentFactory for Random
[src]