Mutably borrowing a struct with a lifetime parameter in Rust, makes it unusable afterwards. I need some advice
Since recently, I started learning Rust and I’m a bit confused with the borrowing and lifetimes concepts. For practice I decided to implement a simple linked list. This is my initial code: