Rust same mutable reference in multiple vectors

前端 未结 0 417
孤独总比滥情好
孤独总比滥情好 2021-01-30 04:57

I am trying to store an object into 2 different reference vectors, and if I modify the object from first vector ref, it should be visible from the second vector.

I still

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