Rust Factory

A library containing common boiler plates for factory pattern implementation.

The library provides interfaces for the following: - A static factory method, requires no instantiation of the factory object. - An instance-bound factory method, binds the factory method to a particular instance. - A safe runtime factory, Allows for "safe" runtime factory methods. For example, allows the addition of new elements, without mutating any existing items.

Features

| Name | Description | Default | | :---- | :---------------------------------------------------------------------------- | :------ | | std | When enabled uses elements from the std crate. Otherwise finds a substitute | enabled |

Examples

For more information about how to use this library, refer to the examples directory.