Skip to content

Tracking Issue for iter_mut on BinaryHeap #98524

Closed
@donkeyteethUX

Description

@donkeyteethUX

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.

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