It's possible to use a protocol as a workaround for indirect struct fields. Same could be used for enums instead of using the built-in indirect (just the latter is nicer and does not require an ad hoc protocol).
It's possible to use a protocol as a workaround for indirect struct fields. Same could be used for enums instead of using the built-in indirect (just the latter is nicer and does not require an ad hoc protocol).