Basic functions for dealing with memory.
This module contains functions for querying the size and alignment of types, initializing and manipulating memory.
What transmutation safety conditions shall the compiler assume that you are checking?
Opaque type representing the discriminant of an enum.
A wrapper to inhibit compiler from automatically calling
This wrapper is 0-cost.
Are values of a type transmutable into values of another type?
Bitwise-copies a value.
Returns the number of variants in the enum type
Returns a value uniquely identifying the enum variant in
Disposes of a value.
Takes ownership and “forgets” about the value without running its destructor.
true if dropping values of type
src into the referenced
dest, returning the previous
Returns the size of a type in bytes.
Returns the size of the pointed-to value in bytes.
Swaps the values at two mutable locations, without deinitializing either one.
dest with the default value of
T, returning the previous
src as having type
&U, and then reads
src without moving
the contained value.
Bypasses Rust’s normal memory-initialization checks by pretending to
produce a value of type
T, while doing nothing at all.
A wrapper type to construct uninitialized instances of