Mojo Dict: Store struct instances based on a common trait as CollectionElement.
I'm trying to use a Mojo Dict to store different instances of structs which conform to a common trait. I've created a 'playground' file to work out a solution, but I am stumped. Feels like I'm really close, but no joy yet. Any suggestions?
GitHub: https://github.com/johnsoez4/dict
The code snippet below uses the structs defined earlier in the file. The last line below causes the error:
GitHub: https://github.com/johnsoez4/dict
The code snippet below uses the structs defined earlier in the file. The last line below causes the error:
GitHub
Contribute to johnsoez4/dict development by creating an account on GitHub.
