priority-queue icon indicating copy to clipboard operation
priority-queue copied to clipboard

A priority queue for Rust with efficient change function.

Results 13 priority-queue issues
Sort by recently updated
recently updated
newest added

Returning a guard type out of `peek_mut`, `get_mut` and similar would allow to change the priority. When the guard is dropped, the item is put in the right place in...

enhancement

I think I've found a test error under miri. Here's the test (it doesn't matter which queue you use). After you drop the iterator, changing the priority rebuilds the heap,...

bug
help wanted

Is it a conscious design decision to not allow user to iterate over a queue without consuming it? ``` use priority_queue::PriorityQueue; let mut pq = PriorityQueue::new(); assert!(pq.is_empty()); pq.push("Apples", 5); for...