What I've learned about self-referential structs in Rust

104 points ksnll 19 comments

While learning more advanced topics, I got curious about self-referential structs, why they’re hard, how Pin comes into play, and what options we have.

I wrote an article to clarify my understanding:
https://ksnll.github.io/rust-self-referential-structs/

Hope this helps also somebody else, and I would really appreciate some feedback!