Commit 1d49486
committed
refactor(core): replace
[rust-lang/rust#106541][1] added `#[const_trait]` to `Iterator` as well
as internal attribute to bypass the constness check for other methods
than `Iterator::next`. As a result, user code can now implement `const
Iterator` in a normal way, i.e., just by implementing `Iterator::next`.
[1]: rust-lang/rust#106541MyIterator with standard Iterator
1 parent 8b64feb commit 1d49486
2 files changed
+5
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | 452 | | |
472 | 453 | | |
473 | 454 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | 536 | | |
546 | 537 | | |
547 | | - | |
| 538 | + | |
548 | 539 | | |
549 | 540 | | |
550 | 541 | | |
551 | 542 | | |
552 | | - | |
| 543 | + | |
553 | 544 | | |
554 | 545 | | |
555 | 546 | | |
| |||
0 commit comments