3 releases

0.1.2 Apr 16, 2019
0.1.1 Mar 30, 2018
0.1.0 Mar 29, 2018

#34 in #u8

Download history 121/week @ 2024-07-29 84/week @ 2024-08-05 73/week @ 2024-08-12 47/week @ 2024-08-19 139/week @ 2024-08-26 56/week @ 2024-09-02 58/week @ 2024-09-09 54/week @ 2024-09-16 139/week @ 2024-09-23 60/week @ 2024-09-30 36/week @ 2024-10-07 87/week @ 2024-10-14 49/week @ 2024-10-21 84/week @ 2024-10-28 80/week @ 2024-11-04 42/week @ 2024-11-11

273 downloads per month
Used in 18 crates (7 directly)

MIT license

9KB
148 lines

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);

lib.rs:

This crate provides Factory trait and its implementations.

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

Examples

Creates default instances of u8 type:

use factory::{DefaultFactory, Factory};

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

Dependencies