Function di::singleton_as_self

source ·
pub fn singleton_as_self<T: Any>() -> ServiceDescriptorBuilder<T, T>
Available on crate feature builder only.
Expand description

Initializes a new singleton ServiceDescriptorBuilder.

Remarks

This function maps a concrete type to itself rather than a trait.