All the RadixHeapMap operations require K: Radix + Ord + Copy. It seems the intended way to make a min-heap is via the RevOrd wrapper, for which a Radix implementation is defined. But RevOrd can’t actually be used since it doesn’t derive Copy.
Perhaps a Radix impl for std::cmp::Reverse should be added, since Reverse derives Copy at least in 1.26 beta (rust-lang/rust#47379).
All the
RadixHeapMapoperations requireK: Radix + Ord + Copy. It seems the intended way to make a min-heap is via theRevOrdwrapper, for which aRadiximplementation is defined. ButRevOrdcan’t actually be used since it doesn’t deriveCopy.Perhaps a
Radiximpl forstd::cmp::Reverseshould be added, sinceReversederivesCopyat least in 1.26 beta (rust-lang/rust#47379).