@@ -2301,6 +2301,7 @@ pub struct U32Digits<'a> {
2301
2301
#[ cfg( not( u64_digit) ) ]
2302
2302
it : core:: slice:: Iter < ' a , u32 > ,
2303
2303
}
2304
+
2304
2305
#[ cfg( u64_digit) ]
2305
2306
impl < ' a > U32Digits < ' a > {
2306
2307
#[ inline]
@@ -2319,6 +2320,7 @@ impl<'a> U32Digits<'a> {
2319
2320
}
2320
2321
}
2321
2322
}
2323
+
2322
2324
#[ cfg( u64_digit) ]
2323
2325
impl Iterator for U32Digits < ' _ > {
2324
2326
type Item = u32 ;
@@ -2366,6 +2368,7 @@ impl Iterator for U32Digits<'_> {
2366
2368
self . len ( )
2367
2369
}
2368
2370
}
2371
+
2369
2372
#[ cfg( u64_digit) ]
2370
2373
impl ExactSizeIterator for U32Digits < ' _ > {
2371
2374
#[ inline]
@@ -2381,6 +2384,7 @@ impl<'a> U32Digits<'a> {
2381
2384
Self { it : data. iter ( ) }
2382
2385
}
2383
2386
}
2387
+
2384
2388
#[ cfg( not( u64_digit) ) ]
2385
2389
impl Iterator for U32Digits < ' _ > {
2386
2390
type Item = u32 ;
@@ -2409,6 +2413,7 @@ impl Iterator for U32Digits<'_> {
2409
2413
self . it . count ( )
2410
2414
}
2411
2415
}
2416
+
2412
2417
#[ cfg( not( u64_digit) ) ]
2413
2418
impl ExactSizeIterator for U32Digits < ' _ > {
2414
2419
#[ inline]
@@ -2428,6 +2433,7 @@ pub struct U64Digits<'a> {
2428
2433
#[ cfg( u64_digit) ]
2429
2434
it : core:: slice:: Iter < ' a , u64 > ,
2430
2435
}
2436
+
2431
2437
#[ cfg( not( u64_digit) ) ]
2432
2438
impl < ' a > U64Digits < ' a > {
2433
2439
#[ inline]
@@ -2460,13 +2466,6 @@ impl Iterator for U64Digits<'_> {
2460
2466
self . len ( )
2461
2467
}
2462
2468
}
2463
- #[ cfg( not( u64_digit) ) ]
2464
- impl ExactSizeIterator for U64Digits < ' _ > {
2465
- #[ inline]
2466
- fn len ( & self ) -> usize {
2467
- self . it . len ( )
2468
- }
2469
- }
2470
2469
2471
2470
#[ cfg( u64_digit) ]
2472
2471
impl < ' a > U64Digits < ' a > {
@@ -2475,6 +2474,7 @@ impl<'a> U64Digits<'a> {
2475
2474
Self { it : data. iter ( ) }
2476
2475
}
2477
2476
}
2477
+
2478
2478
#[ cfg( u64_digit) ]
2479
2479
impl Iterator for U64Digits < ' _ > {
2480
2480
type Item = u64 ;
@@ -2503,13 +2503,14 @@ impl Iterator for U64Digits<'_> {
2503
2503
self . it . count ( )
2504
2504
}
2505
2505
}
2506
- # [ cfg ( u64_digit ) ]
2506
+
2507
2507
impl ExactSizeIterator for U64Digits < ' _ > {
2508
2508
#[ inline]
2509
2509
fn len ( & self ) -> usize {
2510
2510
self . it . len ( )
2511
2511
}
2512
2512
}
2513
+
2513
2514
impl FusedIterator for U64Digits < ' _ > { }
2514
2515
2515
2516
/// Creates and initializes a `BigUint`.
0 commit comments