Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking Issue for VecDeque::pop_front_if & VecDeque::pop_back_if #135889

Open
1 of 4 tasks
GrigorenkoPV opened this issue Jan 22, 2025 · 0 comments
Open
1 of 4 tasks

Tracking Issue for VecDeque::pop_front_if & VecDeque::pop_back_if #135889

GrigorenkoPV opened this issue Jan 22, 2025 · 0 comments
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@GrigorenkoPV
Copy link
Contributor

GrigorenkoPV commented Jan 22, 2025

Feature gate: #![feature(vec_deque_pop_if)]

Similar to #122741, but this time with VecDeque instead of Vec.

Public API

impl<T> VecDeque<T> {
    pub fn pop_front_if(&mut self, predicate: impl FnOnce(&mut T) -> bool) -> Option<T>;
    pub fn pop_back_if(&mut self, predicate: impl FnOnce(&mut T) -> bool) -> Option<T>;
}

Steps / History

Unresolved Questions

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

@GrigorenkoPV GrigorenkoPV added C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Jan 22, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Jan 24, 2025
Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if`

Tracking issue: rust-lang#135889
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Jan 24, 2025
Rollup merge of rust-lang#135890 - GrigorenkoPV:deque-pop-if, r=thomcc

Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if`

Tracking issue: rust-lang#135889
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant