]> git.lizzy.rs Git - rust.git/commitdiff
Document the `size_of_val` instrinsic
authorWesley Wiser <wwiser@gmail.com>
Sun, 22 Oct 2017 15:53:29 +0000 (11:53 -0400)
committerWesley Wiser <wwiser@gmail.com>
Mon, 23 Oct 2017 00:30:38 +0000 (20:30 -0400)
src/libcore/intrinsics.rs

index bc82f0230e5b44b1f52dcce24b15050ffc5a73d8..2d6b5b832c534f04bfb71debef29ee118d731e22 100644 (file)
     pub fn min_align_of<T>() -> usize;
     pub fn pref_align_of<T>() -> usize;
 
+    /// The size of the referenced value in bytes.
+    ///
+    /// The stabilized version of this intrinsic is
+    /// [`std::mem::size_of_val`](../../std/mem/fn.size_of_val.html).
     pub fn size_of_val<T: ?Sized>(_: &T) -> usize;
     pub fn min_align_of_val<T: ?Sized>(_: &T) -> usize;