pub trait DIProvider {
type Output: ?Sized;
// Required method
fn di_on(container: &DIContainer) -> DI<Self::Output>;
// Provided method
fn di() -> DI<Self::Output> { ... }
}
Expand description
Provides component instance for trait DI types.
Required Associated Types§
Required Methods§
Sourcefn di_on(container: &DIContainer) -> DI<Self::Output>
fn di_on(container: &DIContainer) -> DI<Self::Output>
DI on a container.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.