How to mutate structs while iterating over them in Rust?

后端 未结 0 1453
执念已碎
执念已碎 2021-02-13 10:52

I am learning Rust, and am having some trouble coming to grips with the ownership system and borrowing references. I have a case where I need to mutate a vector of structures on

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