How to pass a boxed trait object by value in Rust?

后端 未结 0 1383
闹比i
闹比i 2020-12-12 11:13

I was writing some code and had a trait with a method that takes self by value. I want to call this method on a Box\'d trait object (consuming the

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