We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
size_of_val
1 parent 8493813 commit 860e436Copy full SHA for 860e436
src/libcore/intrinsics.rs
@@ -676,6 +676,10 @@ extern "rust-intrinsic" {
676
pub fn min_align_of<T>() -> usize;
677
pub fn pref_align_of<T>() -> usize;
678
679
+ /// The size of the referenced value in bytes.
680
+ ///
681
+ /// The stabilized version of this intrinsic is
682
+ /// [`std::mem::size_of_val`](../../std/mem/fn.size_of_val.html).
683
pub fn size_of_val<T: ?Sized>(_: &T) -> usize;
684
pub fn min_align_of_val<T: ?Sized>(_: &T) -> usize;
685
0 commit comments