Skip to content

Support Equivalent trait for flexible key lookups #75

@liwenjieQu

Description

@liwenjieQu

Currently, key lookups are restricted by the Borrow<Q> trait bound. This works for many cases but limits flexibility when dealing with custom key types.

The underlying IndexMap already uses the Equivalent trait to support lookups with alternative but equivalent key types. Our priority queues should align with this pattern to provide a more consistent and powerful API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions