@@ -341,25 +341,25 @@ pub struct ByteIter<'b> {
341
341
iter : slice:: Iter < ' b , u8 > ,
342
342
}
343
343
344
- impl < ' b > Iterator for ByteIter < ' b > {
344
+ impl Iterator for ByteIter < ' _ > {
345
345
type Item = u8 ;
346
346
#[ inline]
347
347
fn next ( & mut self ) -> Option < u8 > { self . iter . next ( ) . copied ( ) }
348
348
#[ inline]
349
349
fn size_hint ( & self ) -> ( usize , Option < usize > ) { self . iter . size_hint ( ) }
350
350
}
351
351
352
- impl < ' b > ExactSizeIterator for ByteIter < ' b > {
352
+ impl ExactSizeIterator for ByteIter < ' _ > {
353
353
#[ inline]
354
354
fn len ( & self ) -> usize { self . iter . len ( ) }
355
355
}
356
356
357
- impl < ' b > DoubleEndedIterator for ByteIter < ' b > {
357
+ impl DoubleEndedIterator for ByteIter < ' _ > {
358
358
#[ inline]
359
359
fn next_back ( & mut self ) -> Option < Self :: Item > { self . iter . next_back ( ) . copied ( ) }
360
360
}
361
361
362
- impl < ' b > FusedIterator for ByteIter < ' b > { }
362
+ impl FusedIterator for ByteIter < ' _ > { }
363
363
364
364
/// Iterator over ASCII characters of the human-readable part.
365
365
///
@@ -368,32 +368,32 @@ pub struct CharIter<'b> {
368
368
iter : ByteIter < ' b > ,
369
369
}
370
370
371
- impl < ' b > Iterator for CharIter < ' b > {
371
+ impl Iterator for CharIter < ' _ > {
372
372
type Item = char ;
373
373
#[ inline]
374
374
fn next ( & mut self ) -> Option < char > { self . iter . next ( ) . map ( Into :: into) }
375
375
#[ inline]
376
376
fn size_hint ( & self ) -> ( usize , Option < usize > ) { self . iter . size_hint ( ) }
377
377
}
378
378
379
- impl < ' b > ExactSizeIterator for CharIter < ' b > {
379
+ impl ExactSizeIterator for CharIter < ' _ > {
380
380
#[ inline]
381
381
fn len ( & self ) -> usize { self . iter . len ( ) }
382
382
}
383
383
384
- impl < ' b > DoubleEndedIterator for CharIter < ' b > {
384
+ impl DoubleEndedIterator for CharIter < ' _ > {
385
385
#[ inline]
386
386
fn next_back ( & mut self ) -> Option < Self :: Item > { self . iter . next_back ( ) . map ( Into :: into) }
387
387
}
388
388
389
- impl < ' b > FusedIterator for CharIter < ' b > { }
389
+ impl FusedIterator for CharIter < ' _ > { }
390
390
391
391
/// Iterator over lowercase bytes (ASCII characters) of the human-readable part.
392
392
pub struct LowercaseByteIter < ' b > {
393
393
iter : ByteIter < ' b > ,
394
394
}
395
395
396
- impl < ' b > Iterator for LowercaseByteIter < ' b > {
396
+ impl Iterator for LowercaseByteIter < ' _ > {
397
397
type Item = u8 ;
398
398
#[ inline]
399
399
fn next ( & mut self ) -> Option < u8 > {
@@ -403,44 +403,44 @@ impl<'b> Iterator for LowercaseByteIter<'b> {
403
403
fn size_hint ( & self ) -> ( usize , Option < usize > ) { self . iter . size_hint ( ) }
404
404
}
405
405
406
- impl < ' b > ExactSizeIterator for LowercaseByteIter < ' b > {
406
+ impl ExactSizeIterator for LowercaseByteIter < ' _ > {
407
407
#[ inline]
408
408
fn len ( & self ) -> usize { self . iter . len ( ) }
409
409
}
410
410
411
- impl < ' b > DoubleEndedIterator for LowercaseByteIter < ' b > {
411
+ impl DoubleEndedIterator for LowercaseByteIter < ' _ > {
412
412
#[ inline]
413
413
fn next_back ( & mut self ) -> Option < Self :: Item > {
414
414
self . iter . next_back ( ) . map ( |b| if is_ascii_uppercase ( b) { b | 32 } else { b } )
415
415
}
416
416
}
417
417
418
- impl < ' b > FusedIterator for LowercaseByteIter < ' b > { }
418
+ impl FusedIterator for LowercaseByteIter < ' _ > { }
419
419
420
420
/// Iterator over lowercase ASCII characters of the human-readable part.
421
421
pub struct LowercaseCharIter < ' b > {
422
422
iter : LowercaseByteIter < ' b > ,
423
423
}
424
424
425
- impl < ' b > Iterator for LowercaseCharIter < ' b > {
425
+ impl Iterator for LowercaseCharIter < ' _ > {
426
426
type Item = char ;
427
427
#[ inline]
428
428
fn next ( & mut self ) -> Option < char > { self . iter . next ( ) . map ( Into :: into) }
429
429
#[ inline]
430
430
fn size_hint ( & self ) -> ( usize , Option < usize > ) { self . iter . size_hint ( ) }
431
431
}
432
432
433
- impl < ' b > ExactSizeIterator for LowercaseCharIter < ' b > {
433
+ impl ExactSizeIterator for LowercaseCharIter < ' _ > {
434
434
#[ inline]
435
435
fn len ( & self ) -> usize { self . iter . len ( ) }
436
436
}
437
437
438
- impl < ' b > DoubleEndedIterator for LowercaseCharIter < ' b > {
438
+ impl DoubleEndedIterator for LowercaseCharIter < ' _ > {
439
439
#[ inline]
440
440
fn next_back ( & mut self ) -> Option < Self :: Item > { self . iter . next_back ( ) . map ( Into :: into) }
441
441
}
442
442
443
- impl < ' b > FusedIterator for LowercaseCharIter < ' b > { }
443
+ impl FusedIterator for LowercaseCharIter < ' _ > { }
444
444
445
445
fn is_ascii_uppercase ( b : u8 ) -> bool { ( 65 ..=90 ) . contains ( & b) }
446
446
0 commit comments