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]

Build the component with the specified name and number of constraints.

Loading content...

Implementors

impl ComponentFactory for Ladder[src]

impl ComponentFactory for LinearOneway[src]

impl ComponentFactory for LinearTwoway[src]

impl ComponentFactory for Random[src]

impl ComponentFactory for Unprunable[src]

Loading content...