rs-collections-heap 0.1.0
An indexed priority queue with decrease-key
Install
cargo add rs-collections-heap --registry rupm
In Ruststudio: Packages, search for rs-collections-heap, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.
Versions
- 0.1.0 2026-11-23
README
# rs-collections-heap
An indexed priority queue with decrease-key
Add it with `rupm add rs-collections-heap` (or `cargo add rs-collections-heap --registry rupm`).
```rust
let mut h = rs_collections_heap::IndexedHeap::new();
h.push("a", 5);
h.push("b", 3);
h.decrease_key(&"a", 1)?;
assert_eq!(h.pop(), Some(("a", 1)));
```