Trait factory::Factory [] [src]

pub trait Factory {
    type Item;
    fn create(&self) -> Self::Item;
}

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

Associated Types

The type of instances created by this factory.

Required Methods

Creates an instance.

Implementations on Foreign Types

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

[src]

Implementors