[][src]Trait factory::ParameterizedFactory

pub trait ParameterizedFactory {
    type Item;
    type Parameter;
    fn create(&self, param: Self::Parameter) -> Self::Item;
}

This trait allows for creating any number of instances of the Item type with the given parameter.

Associated Types

type Item

The type of instances created by this factory.

type Parameter

The type of parameter.

Loading content...

Required methods

fn create(&self, param: Self::Parameter) -> Self::Item

Creates an instance.

Loading content...

Implementations on Foreign Types

impl<T: ?Sized + ParameterizedFactory, '_> ParameterizedFactory for &'_ T[src]

type Item = T::Item

type Parameter = T::Parameter

impl<T: ?Sized + ParameterizedFactory> ParameterizedFactory for Box<T>[src]

type Item = T::Item

type Parameter = T::Parameter

Loading content...

Implementors

Loading content...