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