<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&#39;ve had to stare deep into the abyss and ask &quot;do I really understand ownership? With that in mind, I am using Rc. Environments have multiple owners.</p><p>Then there&#39;s the abyss of mutability. For that, I&#39;m using RefCell. </p><p>Finally, the act of acceptance. It&#39;s fine to use these tools (Rc and RefCell) for this exact problem.</p>
Reply