提交 6943ca8d 编写于 作者: D Daniel Micay

make DeepClone inherit from Clone

上级 421c6315
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册