2 ms·
Well, Rust doesn't have constructors, let alone copy constructors. Clone goes from &T -> T, so that is the exact opposite conversion needed here, let alone auto
by steveklabnik 6y ago
Well, Rust doesn't have constructors, let alone copy constructors. Clone goes from &T -> T, so that is the exact opposite conversion needed here, let alone auto-clone.
Automatically copying strings may not be a great idea: https://news.ycombinator.com/item?id=8704318 https://news.ycombinator.com/item?id=8704318