|
|
|
|
|
by dorfsmay
2440 days ago
|
|
What would be cases where the add() function need ownership of the x? What the chance in real life that a function like that cannot simply use a reference? In my learning Rust, my life became significantly better and easier when I started to references to borrow as much as possible. |
|