Skip to main content

Pod

Trait Pod 

Source
pub unsafe trait Pod: Copy + 'static { }
Expand description

plain data that may be copied to and from GPU memory byte for byte: no padding, no pointers, every bit pattern valid

§Safety

Implemented here for the integer and float types and arrays of them.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Pod for f32

Source§

impl Pod for f64

Source§

impl Pod for i8

Source§

impl Pod for i16

Source§

impl Pod for i32

Source§

impl Pod for i64

Source§

impl Pod for u8

Source§

impl Pod for u16

Source§

impl Pod for u32

Source§

impl Pod for u64

Source§

impl<T: Pod, const N: usize> Pod for [T; N]

Implementors§