3 ms·
You could make Range<T> copy if T is copy, which would tell the compiler “feel free to automatically copy this, move it into registers, or put it on the stack”,
by lalaithion 5y ago
You could make Range<T> copy if T is copy, which would tell the compiler “feel free to automatically copy this, move it into registers, or put it on the stack”, which basically makes it usable as a “value type” with no ownership semantics.
- sillysaurusx 5y agoCan you? If so, what’s the point of this article? Something doesn’t add up.
- lalaithion 5y agoSorry, the “you” in the article isn’t referring to what an individual rust programmer could do, but what the rust language designers could do.