How to request and to use a structure (no a structure instance!) for a function in Rust?

后端 未结 0 1884
青春惊慌失措
青春惊慌失措 2020-11-21 23:08

I have this code:

    fn func(..., f: T)
        where 
           T: Fn()-> U,
           U: MyTrait
         


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