Suppose you are writing a Rust program, and you are having problems with the borrow checker. The compiler is giving you messages about "use of moved value" and "cannot borrow data as mutable." Should you give up?
No, you should not give up. Instead, here are some tips for dealing with the borrow checker.
Basically in Rust it helps to know what struct owns all the memory in a program. Then you don't have to worry about the memory anymore—you can just access the data by index, referencing the owner struct. In this approach, most structs do not need to store references to other structs.