7 releases
new 0.2.0 | May 17, 2024 |
---|---|
0.1.4 | May 16, 2024 |
0.0.1 | May 6, 2024 |
#6 in #priority-queue
919 downloads per month
45KB
869 lines
queue-queue
Name inspired by the sound birds make "cuckoo"
A simple priority queue crate that supports defining the priority of an element with zero default dependencies. All queues depend on 2 types P
the priority, that implements PartialOrd + PartialEq + Eq
and T
the value, that implements PartialEq + Eq
.
All priority queues implement the trait PriorityQueue
from prelude
, and the available queues are:
RustyPriorityQueue
which is based on top of Rust'sBinaryHeap
. Highest priority has the highest PartialOrd value.InversePriorityQueue
which is based on top of Rust'sBinaryHeap
. Highest priority has the lowest PartialOrd value.