Trait gfx_hal::memory::Pod

source ·
pub unsafe trait Pod: Copy { }
Expand description

A trait for plain-old-data types.

A POD type does not have invalid bit patterns and can be safely created from arbitrary bit pattern. The Pod trait is implemented for standard integer and floating point numbers as well as common arrays of them (for example [f32; 2]).

Implementations on Foreign Types

Implementors