Commit 0e5ce1a
committed
Relax some trait bounds on
This is inspired by rust-lang/rust#58421: "Relax some `Ord` bounds on
`BinaryHeap<T>`", which split out the methods of `BinaryHeap<T>` which
do not require the bound `T: Ord` to a separate impl block.
Note that in order to do something similar here, we also have to remove
the trait bound `C: Compare<T>` from the definition of the struct
`BinaryHeap<T, C>`; the upstream definition of `BinaryHeap<T>` did not
have the analogous bound `T: Ord` on the struct definition in the first
place.BinaryHeap<T, C>
1 parent b3db7f1 commit 0e5ce1a
1 file changed
+318
-319
lines changed
0 commit comments