Crate shadow_pod
source ·Expand description
Utilities for working with POD (Plain Old Data)
Traits§
- 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§
- Cast as a slice of raw bytes.
- Cast as a mut slice of raw bytes.
- Interpret the bytes of
x
as a value of typeT
. - Convert to a slice of raw bytes.
- Convert to a mut slice of raw bytes.
- Create a value of type
T
, with contents initialized to 0s.