Trait object::pod::Pod[][src]

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

Implementations on Foreign Types

Implementors