What are the differences between fn(b: Box) and fn(b: &mut T) in Rust?

后端 未结 0 1270
失恋的感觉
失恋的感觉 2020-12-16 04:58

What are the differences between fn(b: &mut Box) and fn(b: &mut T) in Rust?

Which is more efficient and why?

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