-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
VecDeque should support splice / extend_front #69939
Copy link
Copy link
Open
Labels
A-collectionsArea: `std::collections`Area: `std::collections`C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-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.
Metadata
Metadata
Assignees
Labels
A-collectionsArea: `std::collections`Area: `std::collections`C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
VecDequeshould supportsplicefor convenience.(
SliceDequesupports it, but it doesn't build on wasm and seems kind of abandoned (several unmerged PRs with no updates).)VecDequeshould also supportextend_front(like repeatedpush_frontfrom an iterator. Compared to callingq.splice(..0, iter), the elements added withq.extend_front(iter)would be in reverse order).