pub trait DIProvider {
    type Output: ?Sized;

    fn di_on(container: &DIContainer) -> DI<Self::Output>;

    fn di() -> DI<Self::Output> { ... }
}
Expand description

Provides component instance for trait DI types.

Required Associated Types§

Target trait type.

Required Methods§

DI on a container.

Provided Methods§

DI on the global container.

Implementors§