| Crates.io | factory |
| lib.rs | factory |
| version | 0.1.2 |
| created_at | 2018-03-29 17:54:26.35981+00 |
| updated_at | 2019-04-16 12:42:06.614591+00 |
| description | `Factory` trait and its implementations |
| homepage | https://github.com/sile/factory |
| repository | https://github.com/sile/factory |
| max_upload_size | |
| id | 58100 |
| size | 10,861 |
This crate provides Factory trait and its implementations.
The trait makes it possible to create any number of instances of a specific type.
Creates default instances of u8 type:
use factory::{DefaultFactory, Factory};
let f = DefaultFactory::<u8>::new();
assert_eq!(f.create(), 0);