You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FWIW, ExactSizeIterator doesn't help that much with size_hint (covered by the linked internals thread), since we want the guarantees to apply when a type is used as a plain Iterator generic.
I think that
ExactSizeIterator
should be anunsafe
trait, so that its invariant can be relied upon byunsafe
code.See also #956 and http://internals.rust-lang.org/t/the-trusted-iterator-length-problem/1302
The text was updated successfully, but these errors were encountered: