@@ -7,9 +7,9 @@ trait KeyFunction<A> {
7
7
fn call_mut ( & mut self , arg : A ) -> Self :: Key ;
8
8
}
9
9
10
- impl < A , K , F : ? Sized > KeyFunction < A > for F
10
+ impl < A , K , F > KeyFunction < A > for F
11
11
where
12
- F : FnMut ( A ) -> K ,
12
+ F : FnMut ( A ) -> K + ? Sized ,
13
13
{
14
14
type Key = K ;
15
15
#[ inline]
@@ -370,10 +370,12 @@ where
370
370
///
371
371
/// See [`.group_by()`](crate::Itertools::group_by) for more information.
372
372
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
373
- pub struct Groups < ' a , K : ' a , I : ' a , F : ' a >
373
+ pub struct Groups < ' a , K , I , F >
374
374
where
375
- I : Iterator ,
375
+ I : Iterator + ' a ,
376
376
I :: Item : ' a ,
377
+ K : ' a ,
378
+ F : ' a ,
377
379
{
378
380
parent : & ' a GroupBy < K , I , F > ,
379
381
}
@@ -409,10 +411,12 @@ where
409
411
/// An iterator for the elements in a single group.
410
412
///
411
413
/// Iterator element type is `I::Item`.
412
- pub struct Group < ' a , K : ' a , I : ' a , F : ' a >
414
+ pub struct Group < ' a , K , I , F >
413
415
where
414
- I : Iterator ,
416
+ I : Iterator + ' a ,
415
417
I :: Item : ' a ,
418
+ K : ' a ,
419
+ F : ' a ,
416
420
{
417
421
parent : & ' a GroupBy < K , I , F > ,
418
422
index : usize ,
@@ -537,9 +541,9 @@ where
537
541
/// See [`.chunks()`](crate::Itertools::chunks) for more information.
538
542
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
539
543
#[ derive( Clone ) ]
540
- pub struct Chunks < ' a , I : ' a >
544
+ pub struct Chunks < ' a , I >
541
545
where
542
- I : Iterator ,
546
+ I : Iterator + ' a ,
543
547
I :: Item : ' a ,
544
548
{
545
549
parent : & ' a IntoChunks < I > ,
@@ -568,9 +572,9 @@ where
568
572
/// An iterator for the elements in a single chunk.
569
573
///
570
574
/// Iterator element type is `I::Item`.
571
- pub struct Chunk < ' a , I : ' a >
575
+ pub struct Chunk < ' a , I >
572
576
where
573
- I : Iterator ,
577
+ I : Iterator + ' a ,
574
578
I :: Item : ' a ,
575
579
{
576
580
parent : & ' a IntoChunks < I > ,
0 commit comments