Closed davidli2010 closed 4 years ago
Do you have any other PR#s to be sent?
If no, I'm going to prepare the new release of this crate. (v0.3.1
)
Do you have any other PR#s to be sent? If no, I'm going to prepare the new release of this crate. (
v0.3.1
)
No, thanks. I'm looking forward to a new version, so that I can use it in my project :-)
I've just published v0.3.1!
Add
BinaryHeap::replace_cmp()
and its unsafe versionBinaryHeap::replace_cmp_raw()
to replace the comparator at runtime.The two functions are similar with #22 and can be used when we only have a mutable reference to BinaryHeap.
For example: