diff options
Diffstat (limited to 'library/std/src/prelude/mod.rs')
| -rw-r--r-- | library/std/src/prelude/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/prelude/mod.rs b/library/std/src/prelude/mod.rs index 0bdbab716ad..2d4639342bf 100644 --- a/library/std/src/prelude/mod.rs +++ b/library/std/src/prelude/mod.rs @@ -36,6 +36,10 @@ //! operations for both destructors and overloading `()`. //! * <code>[std::mem]::[drop]</code>, a convenience function for explicitly //! dropping a value. +//! * <code>[std::mem]::{[size_of], [size_of_val]}</code>, to get the size of +//! a type or value. +//! * <code>[std::mem]::{[align_of], [align_of_val]}</code>, to get the +//! alignment of a type or value. //! * <code>[std::boxed]::[Box]</code>, a way to allocate values on the heap. //! * <code>[std::borrow]::[ToOwned]</code>, the conversion trait that defines //! [`to_owned`], the generic method for creating an owned type from a |
