yadi 0.1.0

Yet Another Dependency Injection framework for writing applications with Rust programming language.
Documentation
1
2
3
4
5
6
7
use crate::Container;

/// Trait that marks a struct or enum as a possible member of a [DI Container](Container).
pub trait Injectable: 'static + Send + Sync {
    /// Method allows to initialize trait object from a [DI Container](Container).
    fn from_container(container: &Container) -> Self;
}