mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
make DeepClone inherit from Clone
This commit is contained in:
parent
421c631570
commit
6943ca8dcd
@ -133,7 +133,7 @@ extern_fn_clone!(A, B, C, D, E, F, G, H)
|
||||
|
||||
/// A trait distinct from `Clone` which represents "deep copies" of things like
|
||||
/// managed boxes which would otherwise not be copied.
|
||||
pub trait DeepClone {
|
||||
pub trait DeepClone: Clone {
|
||||
/// Return a deep copy of the value. Unlike `Clone`, the contents of shared pointer types
|
||||
/// *are* copied.
|
||||
fn deep_clone(&self) -> Self;
|
||||
|
Loading…
Reference in New Issue
Block a user