factory

Crates.iofactory
lib.rsfactory
version0.1.2
sourcesrc
created_at2018-03-29 17:54:26.35981
updated_at2019-04-16 12:42:06.614591
description`Factory` trait and its implementations
homepagehttps://github.com/sile/factory
repositoryhttps://github.com/sile/factory
max_upload_size
id58100
size10,861
Takeru Ohta (sile)

documentation

README

factory

factory Documentation Build Status Code Coverage License: MIT

This crate provides Factory trait and its implementations.

The trait makes it possible to create any number of instances of a specific type.

Documentation

Examples

Creates default instances of u8 type:

use factory::{DefaultFactory, Factory};

let f = DefaultFactory::<u8>::new();
assert_eq!(f.create(), 0);
Commit count: 14

cargo fmt