Skip to content

BinaryHeap-from-Vec should document that it's non-allocating and O(n) #58769

Closed
@scottmcm

Description

@scottmcm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-collectionsArea: `std::collections`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.needs-fcpThis change is insta-stable, so needs a completed FCP to proceed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions