priority-queue
priority-queue copied to clipboard
A priority queue for Rust with efficient change function.
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...
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,...
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...