<p><span class="h-card" translate="no"><a href="https://mastodon.social/@tekknolagi" class="u-url mention">@<span>tekknolagi</span></a></span> Preface: I am no Rust expert. Also, this exact problem and my failure to resolve it is what ended my initial Rust adventure 7 years ago. </p><p>Basically, I've had to stare deep into the abyss and ask "do I really understand ownership? With that in mind, I am using Rc. Environments have multiple owners.</p><p>Then there's the abyss of mutability. For that, I'm using RefCell. </p><p>Finally, the act of acceptance. It's fine to use these tools (Rc and RefCell) for this exact problem.</p>