singleton_as_self

Function 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.