Updates Clone docs for Copy comparison.

This commit is contained in:
qwerty01 2021-06-10 11:28:26 -04:00
parent 40c1623b16
commit 2788c71dd4

View file

@ -38,7 +38,7 @@
/// A common trait for the ability to explicitly duplicate an object. /// A common trait for the ability to explicitly duplicate an object.
/// ///
/// Differs from [`Copy`] in that [`Copy`] is implicit and extremely inexpensive, while /// Differs from [`Copy`] in that [`Copy`] is implicit and an inexpensive bit-wise copy, while
/// `Clone` is always explicit and may or may not be expensive. In order to enforce /// `Clone` is always explicit and may or may not be expensive. In order to enforce
/// these characteristics, Rust does not allow you to reimplement [`Copy`], but you /// these characteristics, Rust does not allow you to reimplement [`Copy`], but you
/// may reimplement `Clone` and run arbitrary code. /// may reimplement `Clone` and run arbitrary code.