froodi 1.0.0-beta.18

An ergonomic Rust IoC container
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod container;
mod dependency_resolver;
mod instantiate;
mod instantiator;

pub use container::{ScopeErrorKind, ScopeWithErrorKind};
pub use dependency_resolver::ResolveErrorKind;
pub use instantiate::InstantiateErrorKind;
pub use instantiator::{DFSErrorKind, InstantiatorErrorKind};

use crate::dependency_resolver::DependencyResolver;

#[allow(type_alias_bounds)]
pub type InstantiatorResult<Dep: DependencyResolver<Error = Err>, Err: Into<ResolveErrorKind> = InstantiateErrorKind> = Result<Dep, Err>;