Update E0382.md
This commit is contained in:
parent
d726c8467c
commit
b978bba6a9
@ -61,7 +61,7 @@ with `#[derive(Clone)]`.
|
|||||||
|
|
||||||
Some types have no ownership semantics at all and are trivial to duplicate. An
|
Some types have no ownership semantics at all and are trivial to duplicate. An
|
||||||
example is `i32` and the other number types. We don't have to call `.clone()` to
|
example is `i32` and the other number types. We don't have to call `.clone()` to
|
||||||
clone them, because they are marked `Copy` in addition to `Clone`. Implicit
|
clone them, because they are marked `Copy` in addition to `Clone`. Implicit
|
||||||
cloning is more convenient in this case. We can mark our own types `Copy` if
|
cloning is more convenient in this case. We can mark our own types `Copy` if
|
||||||
all their members also are marked `Copy`.
|
all their members also are marked `Copy`.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user