3 ms·
Can you post a simple code example? It is hard to imagine what the difficulty is.
by jjnoakes 5y ago
Can you post a simple code example? It is hard to imagine what the difficulty is.
- typon 5y agoYou can read through this SO question and the top response does a good job explaining the possible solutions: https://stackoverflow.com/questions/32300132/why-cant-i-store-a-value-and-a-reference-to-that-value-in-the-same-struct https://stackoverflow.com/questions/32300132/why-cant-i-stor...
- jjnoakes 5y agoSeems like using Box solves this issue fairly simply.