pub trait DIPortal {
    fn create_for_di(container: &DIContainer) -> Self;

    fn di_on(container: &DIContainer) -> DI<Self>
    where
        Self: Sized + DITarget
, { ... } fn di() -> DI<Self>
    where
        Self: Sized + DITarget
, { ... } }
Expand description

Add di methods for DI target types.

Required Methods§

Create new instance for DI.

Provided Methods§

DI on a container.

DI on the global container.

Implementors§