the return type of find from rust iterator

后端 未结 0 682
不知归路
不知归路 2021-01-01 07:47

while reading through this example: https://doc.rust-lang.org/std/iter/trait.Iterator.html#examples-35,

I\'m confused by why the result returned is Some(&2)

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