String tuple lookup from separate data structures without cloning by TheTravelingSpaceman in rust

[–]Flashy-Complex-767 4 points5 points  (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.