1 year at OasisL6Nomad38 posts+15 reputation
OP#1
Trying to write a doubly linked list to learn Rust and I'm stuck on "cannot borrow as mutable more than once". Is there a simple way, or should I give up on this exercise?
- Reacted by
Trying to write a doubly linked list to learn Rust and I'm stuck on "cannot borrow as mutable more than once". Is there a simple way, or should I give up on this exercise?
Doubly linked lists are famously the hardest beginner exercise in Rust. Try a singly linked list with Option<Box<Node>> first, it teaches the same ownership lessons without the pain.
Sign in to reply
Join the conversation: sign in or create an account to reply.