BinaryHeap-from-Vec should document that it's non-allocating and O(n) #58769
Labels
A-collections
Area: `std::collection`
needs-fcp
This change is insta-stable, so needs a completed FCP to proceed.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
https://doc.rust-lang.org/beta/std/collections/struct.BinaryHeap.html#impl-From%3CVec%3CT%3E%3E
From the code, this seems to be an allocation-reusing O(n) make_heap, which is a very useful operation, so it would be nice for it to be documented as being such.
The text was updated successfully, but these errors were encountered: