Rust can't insert different structs into hashmap

后端 未结 0 1986
粉色の甜心
粉色の甜心 2021-02-04 08:26

Suppose i have a struct and i want to hash it into 2 HashMaps, such that the first one holds a reference to it and the second one owns it, like that

struct Person         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题