Why is `std::vec::Drain` not `TrustedLen`?

https://doc.rust-lang.org/std/vec/struct.Drain.html

As far as I can tell, all Drain iterators are ExactSizeIterator but not TrustedLen.

I went ahead and made a PR since this seems like just an oversight and TrustedLen is unstable anyway: https://github.com/rust-lang/rust/pull/66759

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.