Tracking Issue for Extend::{extend_one,extend_reserve} · Issue #72631 · rust-lang/rust (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
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.