Add link to std::mem::size_of to size_of intrinsic documentation

This commit is contained in:
Florian Hartwig 2018-10-30 16:13:42 +01:00
parent e8aef7cae1
commit 52deb6b454

View File

@ -672,6 +672,10 @@ extern "rust-intrinsic" {
///
/// More specifically, this is the offset in bytes between successive
/// items of the same type, including alignment padding.
///
/// The stabilized version of this intrinsic is
/// [`std::mem::size_of`](../../std/mem/fn.size_of.html).
pub fn size_of<T>() -> usize;
/// Moves a value to an uninitialized memory location.