Type SemanticsCopy vs Clone vs Move in Public APIs
All courses

Choose impls deliberately

Copy is implicit and cheap — only for small, stack-only types. Clone is explicit and can allocate. API consumers depend on which you derive.

Rare tip: Never derive Copy on types containing String or Vec — the compiler forbids it, but wrapper structs trip people up.

Output
Press Run to execute your code.