Module mem

Module mem 

1.6.0 · Source
Expand description

Basic functions for dealing with memory.

This module contains functions for querying the size and alignment of types, initializing and manipulating memory.

Functions§

align_of
Returns the ABI-required minimum alignment of a type in bytes.
drop
Disposes of a value.
size_of
Returns the size of a type in bytes.
transmute
Reinterprets the bits of a value of one type as another type.