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.