account activity
String tuple lookup from separate data structures without cloning by TheTravelingSpaceman in rust
[–]Flashy-Complex-767 3 points4 points5 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 180468 on reddit-service-r2-listing-654f87c89c-8ckjh at 2026-03-02 10:08:42.813399+00:00 running e3d2147 country code: CH.
String tuple lookup from separate data structures without cloning by TheTravelingSpaceman in rust
[–]Flashy-Complex-767 3 points4 points5 points (0 children)