Skip to content

Glossary: Rust Basics

Copy

Also written: Copy trait, Copy types

The ability of simple, fixed-size types like numbers, `bool` and `char` to be copied cheaply instead of moved. After `let b = a;` with an integer, both stay usable.

Where the book teaches it

Related terms

MoveCloneTrait