Skip to content

It's weird that cmp::Ord methods can't take &const T without purity. #5208

Closed
@bblum

Description

@bblum

I am hacking up a fibonacci heap implementation, in which all the nodes are @mut cells, and unless I want to grow T:Copys all over the place, comparing against data already in the heap is impossible, because today you need immutable pointers to use Ord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions