Closed
Description
size_hint()
can sometimes allow for more efficient memory allocations, and other good performance things.
I intend to make a PR to implement the trivial / easy ones, at least.
This list will be updated as I sort through for false-positives.
-
Deps<'a>
(Implement size_hint for some iterators #5272) -
DepsNotReplaced
(Implement size_hint for some iterators #5272) -
Never used.SourcesMut<'a, 'src>
-
Members<'a, 'cfg>
(Implement size_hint for some iterators #5272) -
No efficient way to do this.Tokenizer<'a>
-
No easy way to do this.PathAncestors<'a>
I found them by running grep -r -n "impl.*\bIterator for |fn size_hint" src > size_hint_todo.txt. Then, delete any pairs of an Iterator line followed by a size_hint line, and manually check the remaining Iterator lines for false positives.
Metadata
Metadata
Assignees
Labels
No labels