How to implement From trait for generic type?

后端 未结 0 1390
眼角桃花
眼角桃花 2021-01-12 23:04

I am trying to implement a Point2 in rust, I want it to functional like this in C++:

template 
class Point2 {
    template 

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