PriorityQueue
This crate implements a Priority Queue with a function to change the priority of an object.
Priority and items are stored in an IndexMap
and the queue is implemented as a Heap of indexes.
Please read the API documentation here
Usage
To use this crate, simply add the following string to your Cargo.toml
:
flex-algo = "0.2.0"
Version numbers follow the semver convention.
Then use the data structure inside your Rust source code as in the following Example.
Remember that, if you need serde support, you should compile using --features serde
.
Example
use PriorityQueue;