Skip to content

find a better way to deal with the Equiv trait #5591

Closed

Description

@thestinger

Right now, core::hashmap has a find_equiv method in addition to find which is useful for situations like using &str for a lookup in a map with ~str keys instead of having to use &~str.

It would probably be better to add a type parameter to the comparison traits (TotalEq, etc.) and possibly allow x == y with different types on each side.

Activity

  1. thestinger commented on Jun 23, 2013

    @thestinger
    ContributorAuthor

    Closing in favour of #7088.

  2. added a commit that references this issue on Aug 21, 2026
  3. added a commit that references this issue on Nov 10, 2026
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

    A-frontend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions