about summary refs log tree commit diff
path: root/src/libstd/clone.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/clone.rs')
-rw-r--r--src/libstd/clone.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/clone.rs b/src/libstd/clone.rs
index 2965b31a8c3..f74d9abda8b 100644
--- a/src/libstd/clone.rs
+++ b/src/libstd/clone.rs
@@ -24,6 +24,7 @@ by convention implementing the `Clone` trait and calling the
 
 use core::kinds::Const;
 
+/// A common trait for cloning an object.
 pub trait Clone {
     /// Returns a copy of the value. The contents of owned pointers
     /// are copied to maintain uniqueness, while the contents of
@@ -85,6 +86,8 @@ clone_impl!(())
 clone_impl!(bool)
 clone_impl!(char)
 
+/// A trait distinct from `Clone` which represents "deep copies" of things like
+/// managed boxes which would otherwise not be copied.
 pub trait DeepClone {
     /// Return a deep copy of the value. Unlike `Clone`, the contents of shared pointer types
     /// *are* copied. Note that this is currently unimplemented for managed boxes, as