Rust: Make a struct generic over a trait

后端 未结 0 1689
生来不讨喜
生来不讨喜 2021-02-19 02:43

I want to create a type that is parameterized over both a type and a trait, specifically the Send trait. My struct looks something like the following:

struct Mayb         


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