Module std::mem
Basic functions for dealing with memory
This module contains functions for querying the size and alignment of types, initializing and manipulating memory.
Functions
drop | Disposes of a value. |
from_be16 | Convert an i16 from big endian to the target's endianness. |
from_be32 | Convert an i32 from big endian to the target's endianness. |
from_be64 | Convert an i64 from big endian to the target's endianness. |
from_le16 | Convert an i16 from little endian to the target's endianness. |
from_le32 | Convert an i32 from little endian to the target's endianness. |
from_le64 | Convert an i64 from little endian to the target's endianness. |
init | Create a value initialized to zero. |
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
|
move_val_init | Move a value to an uninitialized memory location. |
nonzero_size_of | Returns the size of a type in bytes, or 1 if the actual size is zero. |
nonzero_size_of_val | Returns the size in bytes of the type of the value that |
pref_align_of | Returns the preferred alignment of a type |
pref_align_of_val | Returns the preferred alignment of the type of the value that
|
replace | Replace 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. |
to_be16 | Convert an i16 to big endian from the target's endianness. |
to_be32 | Convert an i32 to big endian from the target's endianness. |
to_be64 | Convert an i64 to big endian from the target's endianness. |
to_le16 | Convert an i16 to little endian from the target's endianness. |
to_le32 | Convert an i32 to little endian from the target's endianness. |
to_le64 | Convert an i64 to little endian from the target's endianness. |
uninit | Create an uninitialized value. |