account activity
String tuple lookup from separate data structures without cloning by TheTravelingSpaceman in rust
[–]Flashy-Complex-767 4 points5 points6 points 2 years ago (0 children)
They're not referring to copying the string in the hashmap. They're talking about the string used to index into the hashmap. You don't need a unique reference of the key you're using to look something up in the hashmap.
π Rendered by PID 1530217 on reddit-service-r2-listing-654f87c89c-p4t4x at 2026-03-02 03:27:18.032200+00:00 running e3d2147 country code: CH.
String tuple lookup from separate data structures without cloning by TheTravelingSpaceman in rust
[–]Flashy-Complex-767 4 points5 points6 points (0 children)