How to insert a String variable to a global mutable HashMap(using lazy_static and Mutex) without causing “does not live long enough” problem?

前端 未结 0 1773
梦谈多话
梦谈多话 2021-01-13 15:28

I am using Rust and I want to use a global mutable HashMap for convenience. However, while it is possible to define a global, mutable HashMap using

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