-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for iter::repeat_n() (feature(iter_repeat_n)) #104434
Copy link
Copy link
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Milestone
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(iter_repeat_n)]This is a tracking issue for the
iter::repeat_nfunction and its associatediter::RepeatNtype.This is like
repeat, but count-limited so it can re-use the buffer when generating the last item.ACP rust-lang/libs-team#120 is still open, but I'm sending a PR for it anyway as part of fixing a bug inVecDeque.Public API
Steps / History
doc(hidden):VecDeque::resizeshould re-use the buffer in the passed-in element #104435iter::repeat_nfrom itertools libs-team#120iter::repeat_n#120045Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩