Hi,
I wanted to know if there is a way to know the list of protocols a struct/class conforms to.
struct myStruct: Numeric, Equitable {
// some code to make myStruct Numeric and Equitable conformance.
}
// Some API as below which will list the protocol dependencies
ListProtocolDependencies(myStruct)
// Prints: Numeric, Equitable
I would like to know if there is any API or a library which gives us the details of protocols a struct/class conforms to.
BR