@@ -20,7 +20,9 @@ pub struct ParIter<'a, K, V, S, A: AllocRef + Clone = Global> {
20
20
map : & ' a HashMap < K , V , S , A > ,
21
21
}
22
22
23
- impl < ' a , K : Sync , V : Sync , S : Sync , A : AllocRef + Clone + Sync > ParallelIterator for ParIter < ' a , K , V , S , A > {
23
+ impl < ' a , K : Sync , V : Sync , S : Sync , A : AllocRef + Clone + Sync > ParallelIterator
24
+ for ParIter < ' a , K , V , S , A >
25
+ {
24
26
type Item = ( & ' a K , & ' a V ) ;
25
27
26
28
#[ cfg_attr( feature = "inline-more" , inline) ]
@@ -46,7 +48,9 @@ impl<K, V, S, A: AllocRef + Clone> Clone for ParIter<'_, K, V, S, A> {
46
48
}
47
49
}
48
50
49
- impl < K : fmt:: Debug + Eq + Hash , V : fmt:: Debug , S : BuildHasher , A : AllocRef + Clone > fmt:: Debug for ParIter < ' _ , K , V , S , A > {
51
+ impl < K : fmt:: Debug + Eq + Hash , V : fmt:: Debug , S : BuildHasher , A : AllocRef + Clone > fmt:: Debug
52
+ for ParIter < ' _ , K , V , S , A >
53
+ {
50
54
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
51
55
self . map . iter ( ) . fmt ( f)
52
56
}
@@ -63,7 +67,9 @@ pub struct ParKeys<'a, K, V, S, A: AllocRef + Clone> {
63
67
map : & ' a HashMap < K , V , S , A > ,
64
68
}
65
69
66
- impl < ' a , K : Sync , V : Sync , S : Sync , A : AllocRef + Clone + Sync > ParallelIterator for ParKeys < ' a , K , V , S , A > {
70
+ impl < ' a , K : Sync , V : Sync , S : Sync , A : AllocRef + Clone + Sync > ParallelIterator
71
+ for ParKeys < ' a , K , V , S , A >
72
+ {
67
73
type Item = & ' a K ;
68
74
69
75
#[ cfg_attr( feature = "inline-more" , inline) ]
@@ -86,7 +92,9 @@ impl<K, V, S, A: AllocRef + Clone> Clone for ParKeys<'_, K, V, S, A> {
86
92
}
87
93
}
88
94
89
- impl < K : fmt:: Debug + Eq + Hash , V , S : BuildHasher , A : AllocRef + Clone > fmt:: Debug for ParKeys < ' _ , K , V , S , A > {
95
+ impl < K : fmt:: Debug + Eq + Hash , V , S : BuildHasher , A : AllocRef + Clone > fmt:: Debug
96
+ for ParKeys < ' _ , K , V , S , A >
97
+ {
90
98
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
91
99
self . map . keys ( ) . fmt ( f)
92
100
}
@@ -103,7 +111,9 @@ pub struct ParValues<'a, K, V, S, A: AllocRef + Clone = Global> {
103
111
map : & ' a HashMap < K , V , S , A > ,
104
112
}
105
113
106
- impl < ' a , K : Sync , V : Sync , S : Sync , A : AllocRef + Clone + Sync > ParallelIterator for ParValues < ' a , K , V , S , A > {
114
+ impl < ' a , K : Sync , V : Sync , S : Sync , A : AllocRef + Clone + Sync > ParallelIterator
115
+ for ParValues < ' a , K , V , S , A >
116
+ {
107
117
type Item = & ' a V ;
108
118
109
119
#[ cfg_attr( feature = "inline-more" , inline) ]
@@ -126,7 +136,9 @@ impl<K, V, S, A: AllocRef + Clone> Clone for ParValues<'_, K, V, S, A> {
126
136
}
127
137
}
128
138
129
- impl < K : Eq + Hash , V : fmt:: Debug , S : BuildHasher , A : AllocRef + Clone > fmt:: Debug for ParValues < ' _ , K , V , S , A > {
139
+ impl < K : Eq + Hash , V : fmt:: Debug , S : BuildHasher , A : AllocRef + Clone > fmt:: Debug
140
+ for ParValues < ' _ , K , V , S , A >
141
+ {
130
142
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
131
143
self . map . values ( ) . fmt ( f)
132
144
}
@@ -145,7 +157,9 @@ pub struct ParIterMut<'a, K, V, S, A: AllocRef + Clone> {
145
157
map : & ' a mut HashMap < K , V , S , A > ,
146
158
}
147
159
148
- impl < ' a , K : Send + Sync , V : Send , S : Send , A : AllocRef + Clone + Sync > ParallelIterator for ParIterMut < ' a , K , V , S , A > {
160
+ impl < ' a , K : Send + Sync , V : Send , S : Send , A : AllocRef + Clone + Sync > ParallelIterator
161
+ for ParIterMut < ' a , K , V , S , A >
162
+ {
149
163
type Item = ( & ' a K , & ' a mut V ) ;
150
164
151
165
#[ cfg_attr( feature = "inline-more" , inline) ]
@@ -183,7 +197,9 @@ pub struct ParValuesMut<'a, K, V, S, A: AllocRef + Clone = Global> {
183
197
map : & ' a mut HashMap < K , V , S , A > ,
184
198
}
185
199
186
- impl < ' a , K : Send , V : Send , S : Send , A : AllocRef + Clone + Send > ParallelIterator for ParValuesMut < ' a , K , V , S , A > {
200
+ impl < ' a , K : Send , V : Send , S : Send , A : AllocRef + Clone + Send > ParallelIterator
201
+ for ParValuesMut < ' a , K , V , S , A >
202
+ {
187
203
type Item = & ' a mut V ;
188
204
189
205
#[ cfg_attr( feature = "inline-more" , inline) ]
@@ -199,7 +215,9 @@ impl<'a, K: Send, V: Send, S: Send, A: AllocRef + Clone + Send> ParallelIterator
199
215
}
200
216
}
201
217
202
- impl < K : Eq + Hash , V : fmt:: Debug , S : BuildHasher , A : AllocRef + Clone > fmt:: Debug for ParValuesMut < ' _ , K , V , S , A > {
218
+ impl < K : Eq + Hash , V : fmt:: Debug , S : BuildHasher , A : AllocRef + Clone > fmt:: Debug
219
+ for ParValuesMut < ' _ , K , V , S , A >
220
+ {
203
221
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
204
222
self . map . values ( ) . fmt ( f)
205
223
}
@@ -218,7 +236,9 @@ pub struct IntoParIter<K, V, S, A: AllocRef + Clone = Global> {
218
236
map : HashMap < K , V , S , A > ,
219
237
}
220
238
221
- impl < K : Send , V : Send , S : Send , A : AllocRef + Clone + Send > ParallelIterator for IntoParIter < K , V , S , A > {
239
+ impl < K : Send , V : Send , S : Send , A : AllocRef + Clone + Send > ParallelIterator
240
+ for IntoParIter < K , V , S , A >
241
+ {
222
242
type Item = ( K , V ) ;
223
243
224
244
#[ cfg_attr( feature = "inline-more" , inline) ]
@@ -230,7 +250,9 @@ impl<K: Send, V: Send, S: Send, A: AllocRef + Clone + Send> ParallelIterator for
230
250
}
231
251
}
232
252
233
- impl < K : fmt:: Debug + Eq + Hash , V : fmt:: Debug , S : BuildHasher , A : AllocRef + Clone > fmt:: Debug for IntoParIter < K , V , S , A > {
253
+ impl < K : fmt:: Debug + Eq + Hash , V : fmt:: Debug , S : BuildHasher , A : AllocRef + Clone > fmt:: Debug
254
+ for IntoParIter < K , V , S , A >
255
+ {
234
256
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
235
257
self . map . iter ( ) . fmt ( f)
236
258
}
@@ -247,7 +269,9 @@ pub struct ParDrain<'a, K, V, S, A: AllocRef + Clone = Global> {
247
269
map : & ' a mut HashMap < K , V , S , A > ,
248
270
}
249
271
250
- impl < K : Send , V : Send , S : Send , A : AllocRef + Clone + Sync > ParallelIterator for ParDrain < ' _ , K , V , S , A > {
272
+ impl < K : Send , V : Send , S : Send , A : AllocRef + Clone + Sync > ParallelIterator
273
+ for ParDrain < ' _ , K , V , S , A >
274
+ {
251
275
type Item = ( K , V ) ;
252
276
253
277
#[ cfg_attr( feature = "inline-more" , inline) ]
@@ -315,7 +339,9 @@ where
315
339
}
316
340
}
317
341
318
- impl < K : Send , V : Send , S : Send , A : AllocRef + Clone + Send > IntoParallelIterator for HashMap < K , V , S , A > {
342
+ impl < K : Send , V : Send , S : Send , A : AllocRef + Clone + Send > IntoParallelIterator
343
+ for HashMap < K , V , S , A >
344
+ {
319
345
type Item = ( K , V ) ;
320
346
type Iter = IntoParIter < K , V , S , A > ;
321
347
@@ -325,7 +351,9 @@ impl<K: Send, V: Send, S: Send, A: AllocRef + Clone + Send> IntoParallelIterator
325
351
}
326
352
}
327
353
328
- impl < ' a , K : Sync , V : Sync , S : Sync , A : AllocRef + Clone + Sync > IntoParallelIterator for & ' a HashMap < K , V , S , A > {
354
+ impl < ' a , K : Sync , V : Sync , S : Sync , A : AllocRef + Clone + Sync > IntoParallelIterator
355
+ for & ' a HashMap < K , V , S , A >
356
+ {
329
357
type Item = ( & ' a K , & ' a V ) ;
330
358
type Iter = ParIter < ' a , K , V , S , A > ;
331
359
@@ -335,7 +363,9 @@ impl<'a, K: Sync, V: Sync, S: Sync, A: AllocRef + Clone + Sync> IntoParallelIter
335
363
}
336
364
}
337
365
338
- impl < ' a , K : Send + Sync , V : Send , S : Send , A : AllocRef + Clone + Sync > IntoParallelIterator for & ' a mut HashMap < K , V , S , A > {
366
+ impl < ' a , K : Send + Sync , V : Send , S : Send , A : AllocRef + Clone + Sync > IntoParallelIterator
367
+ for & ' a mut HashMap < K , V , S , A >
368
+ {
339
369
type Item = ( & ' a K , & ' a mut V ) ;
340
370
type Iter = ParIterMut < ' a , K , V , S , A > ;
341
371
0 commit comments