silmeth 🇺🇦<p>Random <a href="https://mstdn.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> tip: if you need self-referential struct – take a look at Yoke (<a href="https://docs.rs/yoke/latest/yoke/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">docs.rs/yoke/latest/yoke/</span><span class="invisible"></span></a>).</p><p>It’s really great and comes in handy eg. if you need to do some zero-copy processing of incoming data, returning stuff referencing those data in the output. And beside a single derive-macro, it’s macro-free.</p><p>I used ouroboros and rental before that, but Yoke is just a joy to use in comparison.</p><p><a href="https://mstdn.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> <a href="https://mstdn.social/tags/SelfReferential" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SelfReferential</span></a></p>