Module std::memStable
[-] [+]
[src]
Basic functions for dealing with memory
This module contains functions for querying the size and alignment of types, initializing and manipulating memory.
Constants
| POST_DROP_U32 | |
| POST_DROP_U64 | |
| POST_DROP_U8 | |
| POST_DROP_USIZE |
Functions
| align_of | Returns the alignment in memory for a type. |
| align_of_val | Returns the alignment of the type of the value that |
| copy_lifetime | Transforms lifetime of the second pointer to match the first. |
| copy_mut_lifetime | Transforms lifetime of the second mutable pointer to match the first. |
| drop | Disposes of a value. |
| dropped | Creates a value initialized to an unspecified series of bytes. |
| forget | Leaks a value into the void, consuming ownership and never running its destructor. |
| min_align_of | Returns the ABI-required minimum alignment of a type |
| min_align_of_val | Returns the ABI-required minimum alignment of the type of the value that |
| replace | Replaces the value at a mutable location with a new one, returning the old value, without deinitialising or copying either one. |
| size_of | Returns the size of a type in bytes. |
| size_of_val | Returns the size of the type that |
| swap | Swap the values at two mutable locations of the same type, without deinitialising or copying either one. |
| transmute | Unsafely transforms a value of one type into a value of another type. |
| transmute_copy | Interprets |
| uninitialized | Creates an uninitialized value. |
| zeroed | Creates a value initialized to zero. |