aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/factory.rs
diff options
context:
space:
mode:
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