How can I borrow an index return by .iter().enumerate with longer lifetime in rust

前端 未结 0 1305
北恋
北恋 2021-01-31 09:47

Suppose I have a grid that contains a Vec, and I want a function that returns an iterator that contains both the position and the value, like (0,0,100),(0,1,200), ...

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