inject_optional

Macro inject_optional 

Source
macro_rules! inject_optional {
    ($trait:path) => { ... };
}
Expand description

Inject trait implementation from the DI container.

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