u/Hitife80in r/rust • Recommends
On “Why Writing a Linked List in Rust is Basically Impossible”
Another obligatory reference for OP: Building on an unsafe foundation — Jason Orendorff. Forget linked lists -- a standard Vector has plenty of unsafe code, and it should (agruably) be simpler to implement. Unsafe Rust is just a stepping stone to warn the developer -- use responsibly, only where you actually need it. To OP's credit -- he did say he is starting to dabble in Rust and may be going unsafe is a bit too early. But, at the same time he seems to have background in C -- that should have prepared him for this.