min-max-heap
An efficient, double-ended priority queue
1.3.0
9.2M downloads/mo
#3259 most downloaded on crates.io
tov/min-max-heap-rs
What this package is like to depend on
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 1.8 years
Nearly every release is documented
notes for 16 of 16 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
16 releases · first in 2016
0 releases in the last 12 months
see the full history below
Release timeline
16 releases · Jun 2016 to Dec 2019
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 16-
1.3.030 Dec 2019Release notes
Open source →Added
- Methods
MinMaxHeap::peek_min_mutandMinMaxHeap::peek_max_mut*.
Changed
- Oldest supported rustc version is now 1.32.0.
- Updated dev dependencies
rand(0.5 to 0.7) andquickcheck(0.7.2 to 0.9).
- Methods
-
1.2.217 Dec 2018 -
1.2.117 Dec 2018Release notes
Open source →Fixed
- Documented time complexity of
pushto be worst-case linear and amortized logarithmic. - Fixed bugs in
MinMaxHeap::replace_maxandMinMaxHeap::push_pop_maxthat were corrupting the heap order.
- Documented time complexity of
-
1.2.002 Jun 2018Release notes
Open source →Added
- Two new iterator types,
DrainAscandDrainDesc, and two new methods for creating them,MinMaxHeap::drain_ascandMinMaxHeap::drain_desc. These iterators drain the heap in ascending (min-first) or descending (max-first) order, respectively. - Implementations of
Iterator::size_hintforDrain,IntoIter, andIteriterator types.
- Two new iterator types,
-
1.1.130 May 2018 -
1.1.012 May 2018Release notes
Open source →Added
- Optional serde support. Enable
"serde"Cargo feature to get impls ofSerializableandDeserializableforMinMaxHeap. - Documented oldest supported rustc version: 1.20.
- Optional serde support. Enable
-
1.0.404 May 2018Release notes
Open source →Changed
- Uses
ManuallyDropinstead ofOptionin internalHoleimplementation. (Thanks to Nikita Popov.)
- Uses
-
1.0.303 May 2018Release notes
Open source →Added
- Some simple benchmarks.
Changed
- Internal
is_min_levelfunction usesleading_zerosinstead of an O(log n)–time loop.
-
1.0.201 Apr 2018 -
1.0.101 Apr 2018 -
1.0.001 Apr 2018 -
0.2.113 Jun 2016 -
0.2.013 Jun 2016Release notes
Open source →Added
MinMaxHeap::into_vec_ascandMinMaxHeap::into_vec_descmethods.- Impl of
From<Vec<T>>forMinMaxHeap<T>.
-
0.1.213 Jun 2016 -
0.1.113 Jun 2016 -
0.1.013 Jun 2016