Function di::transient_with_key_as_self
source · pub fn transient_with_key_as_self<TKey, TSvc: Any>(
) -> ServiceDescriptorBuilder<TSvc, TSvc>Available on crate feature
builder only.Expand description
Initializes a new transient keyed ServiceDescriptorBuilder.
Remarks
This function maps a concrete type to itself rather than a trait.