What do you propose the size hint should be? Since flat_mapping can discard all items or produce arbitrarily many new items per original item, there's no lower or upper bound that can be calculated without actually exhausting the iterator.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| I have created a marginally useful crate, `const-size-flatten` (and have some thoughts about `core` and specialization) | 4 | 512 | June 4, 2023 | |
| Is there a function to set the size hint of an iterator? | 5 | 2211 | April 15, 2022 | |
| How do you implement `ExactSizeIterator`? | 4 | 487 | December 10, 2020 | |
| I don’t understand the size_hint() basic usage example | 5 | 1490 | June 14, 2023 | |
| Chain is not ExactSizeIterator? | 7 | 2062 | January 12, 2023 |