yadi 1.0.0-alpha

YaDI is yet another dependency injection framework for writing applications with the Rust programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{Builder, Tag};
use std::sync::Arc;

pub struct ServiceLocator {}

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

    pub fn builder() -> Builder {
        Builder::default()
    }

    pub async fn get<'a, T>(&self, tag: Option<&Tag<'a>>) -> Option<Arc<T>> {
        todo!()
    }
}