Skip to content
/ factory Public

A minimal Rust library that provides `Factory` trait

License

Notifications You must be signed in to change notification settings

sile/factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A minimal Rust library that provides `Factory` trait

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages