如何使结构符合协议“Equatable”?
@H_502_14@我正在使用Xcode 7.3.1
struct MyStruct { var id: Int var value: String init(id: Int,value: String) { self.id = id self.value = value } var description: String { return "blablabla" } }
MyStruct does not conform to protocol “Equatable”
你有想法使MyStruct符合协议吗?