3 releases

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

#40 in #u8

Download history 58/week @ 2024-11-15 90/week @ 2024-11-22 95/week @ 2024-11-29 112/week @ 2024-12-06 83/week @ 2024-12-13 41/week @ 2024-12-20 40/week @ 2024-12-27 43/week @ 2025-01-03 63/week @ 2025-01-10 59/week @ 2025-01-17 50/week @ 2025-01-24 63/week @ 2025-01-31 108/week @ 2025-02-07 78/week @ 2025-02-14 84/week @ 2025-02-21 68/week @ 2025-02-28

352 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