about summary refs log tree commit diff
path: root/src/libcore/iter/traits/collect.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-366/+0
2020-05-29Add extend_one tracking issue 72631Josh Stone-2/+2
2020-05-29Use a canonical name for extend_reserve(additional)Josh Stone-1/+3
Co-authored-by: David Tolnay <dtolnay@gmail.com>
2020-05-29Add Extend::{extend_one,extend_reserve}Josh Stone-1/+14
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.
2019-12-06Format libcore with rustfmt (including tests and benches)David Tolnay-6/+6
2019-12-03Tweak wording of `collect()` on bad target typeEsteban Küber-2/+2
2019-11-06Add future incompatibility lint for `array.into_iter()`Lukas Kalbertodt-0/+1
As we might want to add `IntoIterator` impls for arrays in the future, and since that introduces a breaking change, this lint warns and suggests using `iter()` instead (which is shorter and more explicit).
2019-10-20Remove leading :: from paths in doc examplesMikko Rantanen-1/+1
2019-08-09Don't use associated type bounds in docs until it is stableIlija Tovilo-3/+2
2019-08-09Add missing #![feature(associated_type_bounds)]Ilija Tovilo-0/+2
2019-08-08Use associated_type_bounds where applicable - closes #61738Ilija Tovilo-2/+2
2019-06-28doc(libcore) Fix CSIvan Enderlin-1/+1
A small PR to fix a small CS typo in `iter/traits/collect.rs`.
2019-03-18Replaced self-reflective explicit types with clearer `Self` or `Self::…` ↵Vincent Esche-1/+1
in stdlib docs
2019-01-22Move FromIterator, IntoIterator, Extend into own moduleClar Fon-0/+349