初学rust,如何实现在运行时对全局变量设置和读取
Tag
运行时,
全局变量,
读写,
on
2023-11-01 22:11:16 by
duguying view
…table statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
error[E0133]: use of mutable static is unsafe and requires unsafe function or block
…