2 ms·
Is this really true? What do you mean by value types? The types that implement copy or any struct types? Because I think struct types only get moved
by akkad33 1y ago
Is this really true? What do you mean by value types? The types that implement copy or any struct types? Because I think struct types only get moved
- Tuna-Fish 1y agoMove and copy are both the same operation under the hood, move just means that the old version is marked invalid and not available for use anymore. For large structs (or enums), move and copy both compile into memcpy. If the structures are large, this can take a lot of time.