make DeepClone inherit from Clone
This commit is contained in:
parent
421c631570
commit
6943ca8dcd
@ -133,7 +133,7 @@ fn clone(&self) -> extern "Rust" fn($($A),*) -> ReturnType { *self }
|
||||
|
||||
/// 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