Expand description
Primitives for object and array transmutation.
The functions in this module are very unsafe and their use is not recommended unless you really know what you are doing.
Functions§
- from_
bytes ⚠ - Convert a byte slice into a single instance of a
Copy
able type. - from_
bytes_ ⚠pedantic - Convert a byte slice into a single instance of a
Copy
able type. - transmute_
many ⚠ - View a byte slice as a slice of an arbitrary type.
- transmute_
many_ ⚠mut - View a mutable byte slice as a slice of an arbitrary type.
- transmute_
many_ ⚠permissive - View a byte slice as a slice of an arbitrary type.
- transmute_
vec ⚠ - Transform a vector into a vector of another element type.