yadi 1.0.0-alpha

YaDI is yet another dependency injection framework for writing applications with the Rust programming language
Documentation
use crate::{Result, ServiceLocator, Tag};

pub struct Builder {}

impl Builder {
    pub fn new() -> Self {
        Self {}
    }

    pub fn add_scoped<T>(&mut self, tag: Option<&Tag>) -> &mut Self {
        self
    }

    pub fn add_scoped_trait<Trait, Impl>(&mut self, tag: Option<&Tag>) -> &mut Self {
        self
    }

    pub fn add_singleton<T>(&mut self, tag: Option<&Tag>) -> &mut Self {
        self
    }

    pub fn add_singleton_trait<Trait, Impl>(&mut self, tag: Option<&Tag>) -> &mut Self {
        self
    }

    pub fn add_transient<T>(&mut self, tag: Option<&Tag>) -> &mut Self {
        self
    }

    pub fn add_transient_trait<Trait, Impl>(&mut self, tag: Option<&Tag>) -> &mut Self {
        self
    }

    pub fn build(self) -> Result<ServiceLocator> {
        todo!()
    }
}

impl Default for Builder {
    fn default() -> Self {
        Self::new()
    }
}