Crate shadow_pod

Source
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 type T.
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.