Updates Clone
docs for Copy
comparison.
This commit is contained in:
parent
40c1623b16
commit
2788c71dd4
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue