nostbeep 0.1.1

A no_std implementation of a binary heap. Binary Heap is implemented as a max heap.
Documentation
  • Coverage
  • 77.78%
    7 out of 9 items documented5 out of 8 items with examples
  • Size
  • Source code size: 6.37 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 818.14 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • luke-lorenzini/binary-heap
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • luke-lorenzini

nostbeep

Rust

A no_std implementation of a binary heap. More specifically, a max heap.

Simple example

use nostbeep::MaxHeap;
let val1 = 17;
let val2 = -5;
let val3 = 100;
let mut my_heap = MaxHeap::new();
assert_eq!(0, my_heap.len());

my_heap.push(val1);
my_heap.push(val2);
my_heap.push(val3);

my_heap.pop();
my_heap.pop();
assert_eq!(Some(val2), my_heap.pop());