When is it useful to use `ref` with a function paramter

后端 未结 0 888
滥情空心
滥情空心 2021-01-29 18:31

This question is not about the difference between fn foo(x: &T) and fn foo(ref x: T).

I wish to ask when it\'s desirable / idiomati

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