标签: rust operator-overloading traits
如何为此自定义类型重载调用运算符:
type Task = Box<dyn FnBox + Send + 'static>;
所以我可以做task(),它将调用box内的函数。
task()