heapify

Crates.io Docs.rs CI Coverage Status

A collection of convenience functions for heapifying a slice in rust.

Quick Start

A simple way to use heapify is with a Vec<T>. ```rust use heapify::*; let mut vec = vec![5, 7, 9]; make_heap(&mut vec);

popheap(&mut vec); asserteq!(vec.pop(), Some(9));

popheap(&mut vec); asserteq!(vec.pop(), Some(7));

asserteq!(peekheap(&mut vec), Some(&5)); ```

Installation

Cargo

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.