Trait object::pod::Pod [−][src]
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:
- be
#[repr(C)]or#[repr(transparent)] - have no invalid byte values
- have no padding