How do I make a structure conform to protocol \"Equatable\"?
I\'m using Xcode 7.3.1
struct MyStruct { var id: Int var value: String init(id: In
Class and struct are different. Struct is value type, but class is reference type.
You cannot define struct in class. On the contrary, you cannot define class in struct.
Struct and class both can conform to any protocol including your custom protocol.