aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/factory.rs13
-rw-r--r--src/interfaces/mod.rs1
2 files changed, 1 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
diff --git a/src/interfaces/mod.rs b/src/interfaces/mod.rs
index ddb3bba..a69da5b 100644
--- a/src/interfaces/mod.rs
+++ b/src/interfaces/mod.rs
@@ -7,6 +7,7 @@ pub mod injectable;
pub mod any_factory;
#[cfg(feature = "factory")]
+#[doc(hidden)]
pub mod factory;
#[cfg(feature = "async")]