@@ -4131,7 +4131,8 @@ impl<'a, 'b, K, Q: ?Sized, V, S, A: Allocator> EntryRef<'a, 'b, K, Q, V, S, A> {
4131
4131
#[ cfg_attr( feature = "inline-more" , inline) ]
4132
4132
pub fn insert ( self , value : V ) -> OccupiedEntry < ' a , K , V , S , A >
4133
4133
where
4134
- K : Hash + From < & ' b Q > ,
4134
+ K : Hash ,
4135
+ & ' b Q : Into < K > ,
4135
4136
S : BuildHasher ,
4136
4137
{
4137
4138
match self {
@@ -4164,7 +4165,8 @@ impl<'a, 'b, K, Q: ?Sized, V, S, A: Allocator> EntryRef<'a, 'b, K, Q, V, S, A> {
4164
4165
#[ cfg_attr( feature = "inline-more" , inline) ]
4165
4166
pub fn or_insert ( self , default : V ) -> & ' a mut V
4166
4167
where
4167
- K : Hash + From < & ' b Q > ,
4168
+ K : Hash ,
4169
+ & ' b Q : Into < K > ,
4168
4170
S : BuildHasher ,
4169
4171
{
4170
4172
match self {
@@ -4194,7 +4196,8 @@ impl<'a, 'b, K, Q: ?Sized, V, S, A: Allocator> EntryRef<'a, 'b, K, Q, V, S, A> {
4194
4196
#[ cfg_attr( feature = "inline-more" , inline) ]
4195
4197
pub fn or_insert_with < F : FnOnce ( ) -> V > ( self , default : F ) -> & ' a mut V
4196
4198
where
4197
- K : Hash + From < & ' b Q > ,
4199
+ K : Hash ,
4200
+ & ' b Q : Into < K > ,
4198
4201
S : BuildHasher ,
4199
4202
{
4200
4203
match self {
@@ -4225,7 +4228,8 @@ impl<'a, 'b, K, Q: ?Sized, V, S, A: Allocator> EntryRef<'a, 'b, K, Q, V, S, A> {
4225
4228
#[ cfg_attr( feature = "inline-more" , inline) ]
4226
4229
pub fn or_insert_with_key < F : FnOnce ( & Q ) -> V > ( self , default : F ) -> & ' a mut V
4227
4230
where
4228
- K : Hash + Borrow < Q > + From < & ' b Q > ,
4231
+ K : Hash + Borrow < Q > ,
4232
+ & ' b Q : Into < K > ,
4229
4233
S : BuildHasher ,
4230
4234
{
4231
4235
match self {
@@ -4320,7 +4324,8 @@ impl<'a, 'b, K, Q: ?Sized, V: Default, S, A: Allocator> EntryRef<'a, 'b, K, Q, V
4320
4324
#[ cfg_attr( feature = "inline-more" , inline) ]
4321
4325
pub fn or_default ( self ) -> & ' a mut V
4322
4326
where
4323
- K : Hash + From < & ' b Q > ,
4327
+ K : Hash ,
4328
+ & ' b Q : Into < K > ,
4324
4329
S : BuildHasher ,
4325
4330
{
4326
4331
match self {
@@ -4368,7 +4373,8 @@ impl<'a, 'b, K, Q: ?Sized, V, S, A: Allocator> VacantEntryRef<'a, 'b, K, Q, V, S
4368
4373
#[ cfg_attr( feature = "inline-more" , inline) ]
4369
4374
pub fn insert ( self , value : V ) -> & ' a mut V
4370
4375
where
4371
- K : Hash + From < & ' b Q > ,
4376
+ K : Hash ,
4377
+ & ' b Q : Into < K > ,
4372
4378
S : BuildHasher ,
4373
4379
{
4374
4380
let table = & mut self . table . table ;
@@ -4399,7 +4405,8 @@ impl<'a, 'b, K, Q: ?Sized, V, S, A: Allocator> VacantEntryRef<'a, 'b, K, Q, V, S
4399
4405
#[ cfg_attr( feature = "inline-more" , inline) ]
4400
4406
pub fn insert_entry ( self , value : V ) -> OccupiedEntry < ' a , K , V , S , A >
4401
4407
where
4402
- K : Hash + From < & ' b Q > ,
4408
+ K : Hash ,
4409
+ & ' b Q : Into < K > ,
4403
4410
S : BuildHasher ,
4404
4411
{
4405
4412
let elem = self . table . table . insert (
0 commit comments