Rust: generic must be implement &xx[…]

前端 未结 0 952
鱼传尺愫
鱼传尺愫 2021-01-23 05:12

I\'m trying to implement a generic struct where it\'s clear from the beginnging that it\'s element \'provider\' must be of a type that supports &myvar.provider[..] later on.

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