Converting an option impl trait to a option box dyn trait

前端 未结 0 1400
一向
一向 2021-01-07 05:33

Is it possible to map an option impl trait to a box dyn trait? If the argument to new() is not an option it is possible to assign it to the struct with Some(box::new(item)),

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