How to initialize immutable globals with non-const initializer in Rust?

后端 未结 0 1128
悲哀的现实
悲哀的现实 2020-12-03 12:29

I am trying to get a variable that is only initialized once, at runtime. In C/C++ static would be the keyword that I would be looking for, yet in Rust, it must

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