It’s hard to tell what it is you’re trying to do here, but maybe Option isn’t the right type? To me it feels like you’d want to return a type like Vec
or an iterator.
I would recommend looking at some of the iterator functions to do this. You could look at filter_map
, collect
, and fold
/try_fold
and see if any of those help you here.
On this topic, I remember seeing a thread for Frostpunk 2 asking if it had DEI stuff in it.
There aren’t even any real characters in Frostpunk 2. Tf are you talking about DEI for in a game with no real characters?