Skip to content

feat: use Q: ?Sized + Ord + equivalent::Comparable<K> instead of K: Borrow<Q>, Q: ?Sized + Ord as lookup APIs trait bounds #10

@al8n

Description

@al8n

Hi, may I ask about using equivalent::Comparable as lookup API trait bounds? It is something like what indexmap::IndexMap::get do.

K: Borrow<Q> is quite limit for some scenarios, an example can be found here crossbeam-rs/crossbeam#1133.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions