Skip to content

Support Equivalent trait for flexible key lookups #75

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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