Expand description
Utilities for working with POD (Plain Old Data)
Traits§
- Pod
- Marker trait that the given type is Plain Old Data; i.e. that it is safe to interpret any pattern of bits as a value of this type.
Functions§
- as_
u8_ slice - Cast as a slice of raw bytes.
- as_
u8_ ⚠slice_ mut - Cast as a mut slice of raw bytes.
- from_
array - Interpret the bytes of
x
as a value of typeT
. - to_
u8_ slice - Convert to a slice of raw bytes.
- to_
u8_ ⚠slice_ mut - Convert to a mut slice of raw bytes.
- zeroed
- Create a value of type
T
, with contents initialized to 0s.