|
|
|
|
|
by mrtngslr
1276 days ago
|
|
Right, this is a problem with reference counted data structures in general. You're correct that Rust doesn't try to solve this particular problem. Put differently, the borrow checker won't allow you to create a cycle of refrences (the & kind). But you can do it with library types such as Rc. |
|
(I'm sure you knew this, just adding to the discussion)