<p dir="auto">Currently <code class="notranslate">PriorityQueue</code> defaults to a max-heap and if you want to use it as a min-heap you need to overload <code class="notranslate">Ord</code> and change the comparison.</p>
<p dir="auto">But you should be able to use the default ordering and simply specify that you want a min-heap, so we can use it for types like <code class="notranslate">(uint, &amp;str)</code> for example.</p>
<p dir="auto">The simple idea would be to simply make a <code class="notranslate">new_min_heap</code> and a <code class="notranslate">min_heap_with_capacity</code> constructors.</p>
<p dir="auto">Thoughts?</p>
<p dir="auto">When documenting traits, rustdoc lists known implementations. From there it links to both the trait and the type it’s implemented on, which both (usually) have an [src] link.</p>
<p dir="auto">However, the source code of an <code class="notranslate">impl</code> is not always next to either of them. Could each <code class="notranslate">impl</code> have an [src] link as well?</p>
<p dir="auto">For example, it’s hard to go from <a href="http://doc.rust-lang.org/std/fmt/trait.Binary.html" rel="nofollow">http://doc.rust-lang.org/std/fmt/trait.Binary.html</a> to <a href="https://github.com/rust-lang/rust/blob/master/src/libcore/fmt/num.rs">https://github.com/rust-lang/rust/blob/master/src/libcore/fmt/num.rs</a> , even <code class="notranslate">grep</code> doesn’t help.</p>