| Crates.io | heapo |
| lib.rs | heapo |
| version | 0.1.0 |
| created_at | 2025-09-14 17:35:28.202061+00 |
| updated_at | 2025-09-14 17:35:28.202061+00 |
| description | Very simple heap implementations in Rust |
| homepage | https://github.com/mirrajabi/heapo |
| repository | https://github.com/mirrajabi/heapo |
| max_upload_size | |
| id | 1838999 |
| size | 26,151 |
Currently contains:
cargo add heapo
let mut heap = PairingHeap::new();
heap.insert(253);
heap.insert(1231);
heap.insert(65);
assert_eq!(heap.peek(), Some(&65));
assert_eq!(heap.pop(), Some(65));
heap.delete();
assert_eq!(heap.peek(), Some(&1231));
assert_eq!(heap.pop(), Some(1231));
assert_eq!(heap.peek(), None);
assert_eq!(heap.pop(), None);
assert_eq!(heap.is_empty(), true);
This project is dual-licensed under the MIT and Apache-2.0 licenses. You can choose either license for your use.