Open
Description
This is a tracking issue for the trait methods Extend::extend_one
and extend_reserve
.
The feature gate for the issue is #![feature(extend_one)]
.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also uses as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
- Implement the API
- Adjust documentation (see instructions on rustc-dev-guide)
- Stabilization PR (see instructions on rustc-dev-guide)
Unresolved Questions
- Are these method names appropriate?
- Note that
Extend
is in the prelude, so the explicitextend_
prefix avoids ambiguity.
- Note that
- Is
Extend
the best place for just methods?- One goal is to improve
Iterator::unzip
, which only hasDefault + Extend
, so there's not really much choice.
- One goal is to improve
Implementation history
- Initial implementation in Add Extend::{extend_one,extend_reserve} #72162.
Metadata
Metadata
Assignees
Labels
Area: `std::collections`Area: IteratorsBlocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are tracked on the team's project board.Relevant to the library API team, which will review and decide on the PR/issue.