diff options
author | HampusM <hampus@hampusmat.com> | 2022-09-24 16:23:15 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-09-24 16:23:15 +0200 |
commit | febfb927b27ab03041500b16c65bdbc0624a5a72 (patch) | |
tree | 76a56df14251388cf9d3d69b07b983cab9436fb4 /src | |
parent | 2a44ec3ffdcd78b23ac31b722b4312774d643c3a (diff) |
refactor: remove IFactory from public API
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/factory.rs | 13 | ||||
-rw-r--r-- | src/interfaces/mod.rs | 1 |
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")] |