Closed
Description
Taken from the standard library:
impl<A: Add<A, A> + Clone> Iterator<A> for Counter<A> {
[...]
#[inline]
fn size_hint(&self) -> (uint, Option<uint>) {
(uint::MAX, None) // Too bad we can't specify an infinite lower bound
}
}
Some iterators are infinite, size_hint
should be able to return (None, None)
for that. This warrants changing the type signature to (Option<uint>, Option<uint>)
.
Metadata
Metadata
Assignees
Labels
No labels