Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Tracking issue for Option::copied #57126
So we added a newtype
fn copied<'a, T>(self) -> Cloned<Self> where Self: Iterator<Item = &'a T>, T: 'a + Copy,
Are there notable reasons not to do this that I'm missing? Doing so would substantially decrease the cost of this feature for the standard library.
Although I suppose we currently DO expose specialization in
Team member @SimonSapin has proposed to merge this. The next step is review by the rest of the tagged team members:
No concerns currently listed.
Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!
See this document for info about what commands tagged team members can give me.