On Thursday, 9 March 2017 at 18:32:41 UTC, tcak wrote:
Is there any way to get list of public methods of a struct?

You can loop through __traits(allMembers, YourStruct) and check protection, type, etc.

__traits(getMember, YourStruct, "some name") gets one method in particular. allMembers returns a list of name strings.

Reply via email to