inject_optional

Function inject_optional 

Source
pub fn inject_optional<T: 'static>() -> Option<Arc<T>>
Expand description

Inject T instance from the DI container.

Returns None if the type is not registered in the container.