roopes_core/patterns/abstract_factory/
mod.rs1#![cfg_attr(feature = "doc-images",
3 cfg_attr(
4 all(),
5 doc = ::embed_doc_image::embed_image!(
6 "abstract-factory-diagram",
7 "src/patterns/abstract_factory/abstract_factory.svg"
8)))]
9#![cfg_attr(
10 not(feature = "doc-images"),
11 doc = "**Doc images not enabled**. Compile with feature `doc-images` and \
12 Rust version >= 1.54 to enable."
13)]
14pub mod lambda;
19
20pub use lambda::Lambda;
21
22pub trait AbstractFactory<T>
25{
26 fn create(&self) -> T;
29}
30
31pub mod prelude
33{
34 pub use super::AbstractFactory;
35}