4 ms·
Is there a site(s) where there is specified how to represent more complex data structures while making the borrow checker happy?
by pdimitar 7y ago
Is there a site(s) where there is specified how to represent more complex data structures while making the borrow checker happy?
- littlestymaar 7y agoWhen you've internalized its rules, the borrow checker isn't too complicated to keep happy (you may need to use stuff like RefCell and Rc though). It takes some time though, and this tutorial helped me a lot in the beginning: https://rust-unofficial.github.io/too-many-lists/ https://rust-unofficial.github.io/too-many-lists/