Hacker News new | ask | show | jobs
by zozbot234 1270 days ago
If a struct might lose Copy you shouldn't implement Copy at all, to preserve forward compatibility. You can still derive Clone in most cases; using .clone() does not per se add any overhead.