Creating a Generic Struct Indexed by a Generic NewType

后端 未结 0 1637
自闭症患者
自闭症患者 2020-11-21 05:54

I\'d like to create a generic struct that uses a generic newtype to index. Ideally it would look something like this:

struct Foo {
    bar: Vec<         


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