Skip to main content

Pod

Trait Pod 

Source
pub unsafe trait Pod: Copy { }
Expand description

Plain-old-data that can be uploaded byte for byte.

§Safety

Implementors must have no padding and no pointers.

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 u8

Source§

impl Pod for u16

Source§

impl Pod for u32

Source§

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

Implementors§