Something like objc_getClassList but for structs.
Just to give some context: this method (for classes) is used in our unit tests to test that all classes with certain suffix have tests for them. We test the tests!
The Swift compiler mostly emits enough metadata to do this kind of reflection today but it isn't exposed. Full-fidelity reflection is on the "list of things we'd like to do" but has not yet been implemented.
Mirror(reflecting: Protocol.self).childrenat some point in time, but in current Swift version the array is empty. stackoverflow.com/questions/35125708/…