Tracking Issue for Vec::peek_mut
#122742
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.
Feature gate:
#![feature(vec_peek_mut)]
This feature adds
Vec::peek_mut
, which returns aPeekMut
struct. It is analogous to[BinaryHeap::peek_mut]
and enables users to conditionally modify and remove the last element of aVec
without having to callunwrap
.Public API
Steps / History
pop_if
orEntry
/Peek
-like API forVec
andVecDeque
libs-team#208Unresolved Questions
peek
orpeek_mut
?Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: