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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.