Re:Indirect ownership, shallow borrow and self-referential d...
by panstromek on Saturday May 07, 2022 @03:44PM
(#31297882)
This is a really cool hack, I didn't know about that. It's another example showing that we really aren't conceptually that far from full fledged language support.
There is a crate that uses async functions to accomplish exactly this. https://crates.io/crates/escher
Disclaimer, I've never actually tried using it. I've used owning_ref or ouroboros depending on what I need.