]> git.lizzy.rs Git - rust.git/commitdiff
doc: Update the documentation to describe the `Pod` trait.
authorPatrick Walton <pcwalton@mimiga.net>
Sun, 15 Dec 2013 23:19:18 +0000 (15:19 -0800)
committerPatrick Walton <pcwalton@mimiga.net>
Tue, 17 Dec 2013 06:38:02 +0000 (22:38 -0800)
doc/rust.md

index aa4ce002e021b57c4630ea2b13ec8a9776b28c11..489a10bb87c482a523cd703da4d51589b7adb486 100644 (file)
@@ -3329,6 +3329,12 @@ The kinds are:
     This kind includes scalars, owning pointers, owned closures, and
     structural types containing only other owned types.
     All `Send` types are `'static`.
+`Pod`
+  : Types of this kind consist of "Plain Old Data"
+    which can be copied by simply moving bits.
+    All values of this kind can be implicitly copied.
+    This kind includes scalars and immutable references,
+    as well as structural types containing other `Pod` types.
 `'static`
   : Types of this kind do not contain any borrowed pointers;
     this can be a useful guarantee for code