How to implement Enumerable protocol for struct?

2 reasons I cannot use from_struct:

  1. the code that calls this is in 3rd party package – I cannot pre-change my struct
  2. academic. I want to know how to do this – all the posts I see in the forum seem to be how to avoid doing this