Skip to content

Glossary: Rust Beyond the Basics

Copy

A trait that makes a value be copied instead of moved when assigned. A type can be `Copy` only if every field is `Copy`, so a struct with a `String` cannot.

Where the book teaches it

Related terms

Clonederive