pub trait InjectExt: Inject + Default {
    // Provided method
    fn inject(container: &Container) -> Result<Self, InjectError> { ... }
}
Expand description

Trait to blanket implement an associated inject method for all types implementing Default, enabling ergonomic get! and call! usages.

Provided Methods§

source

fn inject(container: &Container) -> Result<Self, InjectError>

Implementors§

source§

impl<T> InjectExt for Twhere T: Inject + Default,