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 iter_mut on BinaryHeap #98524

Closed
3 tasks
donkeyteethUX opened this issue Jun 26, 2022 · 1 comment
Closed
3 tasks

Tracking Issue for iter_mut on BinaryHeap #98524

donkeyteethUX opened this issue Jun 26, 2022 · 1 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.

Comments

@donkeyteethUX
Copy link

Feature gate: #![feature(binary_heap_iter_mut)]

Allows iteration over mutable references to heap elements in arbitrary order and rebuilding the heap when the iterator is dropped.

Public API

// new method
pub fn iter_mut(&mut self) -> IterMut<'_, T>;

// new IntoIterator implementation
impl<'a, T: Ord> IntoIterator for &'a mut BinaryHeap<T>;

// new struct
pub struct IterMut<'a, T: 'a + Ord> { /* private */ }

Steps / History

Unresolved Questions

  • None yet.
@donkeyteethUX donkeyteethUX 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 Jun 26, 2022
@scottmcm
Copy link
Member

scottmcm commented Jul 3, 2022

Given the associated PR was closed (#98522 (comment)), I'll close this tracking issue as well.

@scottmcm scottmcm closed this as completed Jul 3, 2022
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

2 participants