Store references to same items in different collections: value borrowed after move

前端 未结 0 914
无人及你
无人及你 2020-11-30 03:26

Let\'s say I\'m trying to create a GameBoard where I have a list/vec of Pieces and references to those pieces on a 2-dimensional grid like this:

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