Skip to main content

Pod

Trait Pod 

Source
pub unsafe trait Pod: Copy { }
Expand description

Types a RawBuf may be viewed as: fixed layout, any bit pattern valid.

§Safety

Implementors must be repr(C) or primitive, contain no padding that a read could observe as uninit (the arena zeroes blocks, so padding reads see zero), and tolerate every bit pattern.

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 f64

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

Implementors§