In Rust, what is the difference between the Copy and Clone traits?
Copy Trait:
- Bitwise copy, automatic and implicit.
- No heap-allocated fields.
- Requires all fields to be Copy.
Clone Trait:
- Custom logic for duplication, call .clone() explicitly.
- Can impl Clone even if there are heap-allocated fields.