File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ use marker::Sized;
48
48
49
49
/// A common trait for the ability to explicitly duplicate an object.
50
50
///
51
- /// Differs from `Copy` in that you can
52
- /// define `Clone` to run arbitrary code, while you are not allowed to override
53
- /// the implementation of `Copy` that only does a `memcpy`.
51
+ /// Differs from `Copy` in that `Copy` is implicit and extremely inexpensive, while
52
+ /// `Clone` is always explicit and may or may not be expensive. In order to enforce
53
+ /// these characteristics, Rust does not allow you to reimplement `Copy`, but you
54
+ /// may reimplement `Clone` and run arbitrary code.
54
55
///
55
56
/// Since `Clone` is more general than `Copy`, you can automatically make anything
56
57
/// `Copy` be `Clone` as well.
You can’t perform that action at this time.
0 commit comments