Constrain Rust method to accept two variables of a valid type pair

后端 未结 0 1584
粉色の甜心
粉色の甜心 2021-01-30 02:50

I have a struct that has some common fields, but there are two fields that must contain related types. I also want to implement a new method that would allow combin

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