3 ms·
This article demonstrates that it is overthinking the issue — both approaches are correct and about as fast. For non-copyable structs move vs borrow are semanti
by pornel 7y ago
This article demonstrates that it is overthinking the issue — both approaches are correct and about as fast. For non-copyable structs move vs borrow are semantically different, so the choice is even clearer.
With built-in style lints and Clippy, Rust is doing quite well in keeping codebases simple and idiomatic.