Skip to content

Glossary: Rust Basics

Clone

Also written: clone, clone(), .clone()

A method that makes a full copy of a value, including its heap data, so each variable owns its own. It costs time and memory for big values.

Where the book teaches it

Related terms

CopyMoveHeap