]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/mem.rs
Document size_of for 128-bit integers
[rust.git] / src / libcore / mem.rs
index c033b670798c43c67f4b45e07720026f87ef8e8c..31635ffa53c83b20ab7172bd2ea5480760bcbbf6 100644 (file)
@@ -194,10 +194,12 @@ pub fn forget<T>(t: T) {
 /// u16 | 2
 /// u32 | 4
 /// u64 | 8
+/// u128 | 16
 /// i8 | 1
 /// i16 | 2
 /// i32 | 4
 /// i64 | 8
+/// i128 | 16
 /// f32 | 4
 /// f64 | 8
 /// char | 4
@@ -635,8 +637,9 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
     }
 }
 
-/// Replaces the value at a mutable location with a new one, returning the old value, without
-/// deinitializing either one.
+/// Moves `src` into the referenced `dest`, returning the previous `dest` value.
+///
+/// Neither value is dropped.
 ///
 /// # Examples
 ///