9 releases
0.2.2 | Jun 8, 2024 |
---|---|
0.2.1 | Jun 5, 2024 |
0.2.0 | May 17, 2024 |
0.1.4 | May 16, 2024 |
0.0.1 | May 6, 2024 |
#10 in #priority-queue
661 downloads per month
48KB
913 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.