Function di::lazy::init_with_key
source · pub fn init_with_key<TKey, TSvc: Any + ?Sized>(
instance: Box<TSvc>
) -> Lazy<KeyedRef<TKey, TSvc>>Available on crate feature
lazy only.Expand description
Creates and returns a holder from an existing instance with a key.
Arguments
instance- The existing instance used to initialize with