Skip to content
masterclass Buddy

Rust · Trait

Copy

Copy lets Rust duplicate a value implicitly by copying its bits. The original remains usable after assignment, but every part of the type must be safely copyable.

Last updated

Since
1.0.0

Syntax

pub trait Copy: Clone { }

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Clone
  • Drop
  • PhantomData
  • String
  • Vec

Source: Copy in std::marker - Rust. Checked 2026-11-03.