How to specialize protocol method on Swift Generic Type?

后端 未结 0 1304
后悔当初
后悔当初 2021-01-20 17:04
struct Point {
    var x: T
    var y: T
}

extension Point: CustomStringConvertible  {
    var description: String {
        return "\\(x), \\(y)"         


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