What are some mind blowing Rust tricks? - eviltoast

If we were to create a Rust version of this page for Haskell, what cool programming techniques would you add to it?

  • Infernaltoast@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 month ago

    You can manually implement PartialEq and Eq on an Enum that implements Hash to manually determine how the hashmap keys override/collide with one another.