2 ms·
It sounds a bit like you tried to write Rust like you do JS. Rust is “move” by default. Passing ownership of a variable to callbacks requires making sure you h
by bluejekyll 6y ago
It sounds a bit like you tried to write Rust like you do JS.
Rust is “move” by default. Passing ownership of a variable to callbacks requires making sure you have the correct types along the way, especially if you want to mutate. It can be easier in many cases to only deal with “owned” data in Rust at first. Clone a lot, and so on.
- politicdone 6y agorust is for losers