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
type Item
The type of instances created by this factory.
Required Methods
Implementations on Foreign Types
impl<T: ?Sized + Factory> Factory for Box<T>
[src]
Implementors
impl<T: Factory> Factory for SwappableFactory<T> type Item = T::Item;
impl<T: Default> Factory for DefaultFactory<T> type Item = T;
impl<T: Clone> Factory for CloneFactory<T> type Item = T;