pub unsafe trait Pod: Copy + 'static { }
Expand description
A trait for types that can safely be converted from and to byte slices.
Safety
A type that is Pod
must:
- be
#[repr(C)]
or#[repr(transparent)]
- have no invalid byte values
- have no padding