Rust is very actively developed and the language itself is extended regularly through the RFC process. Some of these changes, such as the Generic Associated Types RFC, have a strong impact on API-design, because new, better APIs suddenly become possible, where they weren't before.
As example, consider the mentioned GATs RFC: with this feature, we could have collection traits and could write a better version of some traits, e.g. Deref. Or take the impl Trait RFC: with that, it would be desirable to change the Iterator trait such that methods like map() would return impl Iterator instead of Map.
This is a conflict: we could improve std, but not in a backwards-compatible manner. I heard something about "Rust Epochs" (discussed here) and I think they would allow for backwards-incompatible changes.
My question is: Are there already plans on how to change the standard library's API in order to use new language features? Is a new design considered for the Rust 2019 Epoch?
impl Iterator... is storingimpl Iteratorin a structure possible? If it is not, it would not be an improvement. – Matthieu M. Sep 7 '17 at 7:29std, see here" or "no, no one thought about it yet". Maybe the result of the internals discussion can serve as a basis for an answer here on SO. – Lukas Kalbertodt Sep 7 '17 at 14:13stdwould need to be changed to have collection traits. Additionally, I'm not seeing why returningimpl Iteratoris an improvement overMap. Sure, it seems conceptually cleaner, but I don't see a practical benefit. As others have mentioned, this seems like a better fit for the internals form than SO. – Wesley Wiser Sep 7 '17 at 15:05