Open
Description
Cyclic references in Rust are impossible in straightforward way and workarounds are required.
- Describe reason why it is so.
- Show different examples when cyclic reffereneces are present
- Describe solutions (Rc, Vec with storing indexes, Slotmap)
While problem with linked list is simple to grasp, sometimes when the proble manifest itself on architecture level, it is more difficult to realize that you are dealing with cyclic references. Perhaps this presentation can be an example for architecture that can benefit: https://www.youtube.com/watch?v=P9u8x13W7UE
Relevant reddit thread: https://www.reddit.com/r/rust/comments/kq6lt2/slotmap_10_has_been_released_copy_restriction/