From ca86952c1486b7f2313fef62e6cacf36e248efd2 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 13 Jul 2024 16:26:28 +0200 Subject: refactor: move & rename all mod.rs files --- src/di_container/mod.rs | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/di_container/mod.rs (limited to 'src/di_container/mod.rs') diff --git a/src/di_container/mod.rs b/src/di_container/mod.rs deleted file mode 100644 index 4e60505..0000000 --- a/src/di_container/mod.rs +++ /dev/null @@ -1,43 +0,0 @@ -//! Dependency injection container types. - -#[cfg(feature = "async")] -#[cfg_attr(doc_cfg, doc(cfg(feature = "async")))] -pub mod asynchronous; - -pub mod blocking; - -/// DI container binding options. -/// -/// # Examples -/// ``` -/// # use syrette::di_container::BindingOptions; -/// # -/// BindingOptions::new().name("foo"); -/// ``` -#[derive(Debug, Default, Clone, PartialEq, Eq, Hash)] -pub struct BindingOptions<'a> -{ - name: Option<&'a str>, -} - -impl<'a> BindingOptions<'a> -{ - /// Returns a new `BindingOptions`. - #[must_use] - pub const fn new() -> Self - { - Self { name: None } - } - - /// Returns `Self` with the specified name set. - #[must_use] - pub const fn name(mut self, name: &'a str) -> Self - { - self.name = Some(name); - - self - } -} - -// Private. -pub(crate) mod binding_storage; -- cgit v1.2.3-18-g5258