Rollup merge of #55507 - fhartwig:size_of_intrinsic_docs, r=frewsxcv
Add link to std::mem::size_of to size_of intrinsic documentation The other intrinsics with safe/stable alternatives already have documentation to this effect.
This commit is contained in:
commit
d7c833b7ef
@ -672,6 +672,9 @@
|
||||
///
|
||||
/// 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.
|
||||
|
Loading…
Reference in New Issue
Block a user