]> 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 e4e3b1c2a3a392ffd1dc4b53fda24872e1b34e81..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
@@ -836,7 +838,9 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
 
 /// Opaque type representing the discriminant of an enum.
 ///
-/// See the `discriminant` function in this module for more information.
+/// See the [`discriminant`] function in this module for more information.
+///
+/// [`discriminant`]: fn.discriminant.html
 #[stable(feature = "discriminant_value", since = "1.21.0")]
 pub struct Discriminant<T>(u64, PhantomData<fn() -> T>);