mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 22:05:31 +03:00
6700e18688
This adds new optional methods on `Extend`: `extend_one` add a single element to the collection, and `extend_reserve` pre-allocates space for the predicted number of incoming elements. These are used in `Iterator` for `partition` and `unzip` as they shuffle elements one-at-a-time into their respective collections.