Skip to content

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

Open
@GrigorenkoPV

Description

@GrigorenkoPV

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions