@@ -7,8 +7,8 @@ trait KeyFunction<A> {
77 fn call_mut ( & mut self , arg : A ) -> Self :: Key ;
88}
99
10- impl < A , K , F : ? Sized > KeyFunction < A > for F
11- where F : FnMut ( A ) -> K
10+ impl < A , K , F > KeyFunction < A > for F
11+ where F : FnMut ( A ) -> K + ? Sized
1212{
1313 type Key = K ;
1414 #[ inline]
@@ -356,9 +356,12 @@ impl<'a, K, I, F> IntoIterator for &'a GroupBy<K, I, F>
356356///
357357/// See [`.group_by()`](crate::Itertools::group_by) for more information.
358358#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
359- pub struct Groups < ' a , K : ' a , I : ' a , F : ' a >
360- where I : Iterator ,
361- I :: Item : ' a
359+ pub struct Groups < ' a , K , I , F >
360+ where I : Iterator + ' a ,
361+ I :: Item : ' a ,
362+ K : ' a ,
363+ F : ' a ,
364+
362365{
363366 parent : & ' a GroupBy < K , I , F > ,
364367}
@@ -390,9 +393,11 @@ impl<'a, K, I, F> Iterator for Groups<'a, K, I, F>
390393/// An iterator for the elements in a single group.
391394///
392395/// Iterator element type is `I::Item`.
393- pub struct Group < ' a , K : ' a , I : ' a , F : ' a >
394- where I : Iterator ,
396+ pub struct Group < ' a , K , I , F >
397+ where I : Iterator + ' a ,
395398 I :: Item : ' a ,
399+ K : ' a ,
400+ F : ' a ,
396401{
397402 parent : & ' a GroupBy < K , I , F > ,
398403 index : usize ,
@@ -507,8 +512,8 @@ impl<'a, I> IntoIterator for &'a IntoChunks<I>
507512///
508513/// See [`.chunks()`](crate::Itertools::chunks) for more information.
509514#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
510- pub struct Chunks < ' a , I : ' a >
511- where I : Iterator ,
515+ pub struct Chunks < ' a , I >
516+ where I : Iterator + ' a ,
512517 I :: Item : ' a ,
513518{
514519 parent : & ' a IntoChunks < I > ,
@@ -538,8 +543,8 @@ impl<'a, I> Iterator for Chunks<'a, I>
538543/// An iterator for the elements in a single chunk.
539544///
540545/// Iterator element type is `I::Item`.
541- pub struct Chunk < ' a , I : ' a >
542- where I : Iterator ,
546+ pub struct Chunk < ' a , I >
547+ where I : Iterator + ' a ,
543548 I :: Item : ' a ,
544549{
545550 parent : & ' a IntoChunks < I > ,
0 commit comments