aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/factory.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-24 16:23:15 +0200
committerHampusM <hampus@hampusmat.com>2022-09-24 16:23:15 +0200
commitfebfb927b27ab03041500b16c65bdbc0624a5a72 (patch)
tree76a56df14251388cf9d3d69b07b983cab9436fb4 /src/interfaces/factory.rs
parent2a44ec3ffdcd78b23ac31b722b4312774d643c3a (diff)
refactor: remove IFactory from public API
Diffstat (limited to 'src/interfaces/factory.rs')
-rw-r--r--src/interfaces/factory.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/interfaces/factory.rs b/src/interfaces/factory.rs
index 81c594b..b09db36 100644
--- a/src/interfaces/factory.rs
+++ b/src/interfaces/factory.rs
@@ -1,21 +1,8 @@
#![allow(clippy::module_name_repetitions)]
-
-//! Interface for a factory.
-//!
-//! ---
-//!
-//! *This module is only available if Syrette is built with the "factory" feature.*
use crate::libs::intertrait::CastFrom;
use crate::ptr::TransientPtr;
/// Interface for a factory.
-///
-/// # Examples
-/// ```
-/// use syrette::interfaces::factory::IFactory;
-///
-/// type StringFactory = dyn IFactory<(), String>;
-/// ```
pub trait IFactory<Args, ReturnInterface>:
Fn<Args, Output = TransientPtr<ReturnInterface>> + CastFrom
where