Hi, thanks for the reply.
The issue is that you have an associated type
Data
. This type needs to be the same for all trait objects.
Right, I realize now that it's not possible to solve with an additional trait with associated type like I tried.
use another trait object (or an
enum
, see this thread)
That's an interesting approach, I might try that after the Any
approach. But if I read that code correctly you would need to know all possible types and wrap each in an enum entry, but I think that could be solved.