Trait PodOnce

Source
pub trait PodOnce: Pod { }
Expand description

A marker trait for POD types that can be read or written with one instruction.

This trait is mostly a hint, since it’s safe and can be implemented for any POD type. If it is implemented for a type that cannot be read or written with a single instruction, calling read_once/write_once will lead to a failed compile-time assertion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PodOnce for i8

Source§

impl PodOnce for i16

Source§

impl PodOnce for i32

Source§

impl PodOnce for i64

Source§

impl PodOnce for isize

Source§

impl PodOnce for u8

Source§

impl PodOnce for u16

Source§

impl PodOnce for u32

Source§

impl PodOnce for u64

Source§

impl PodOnce for usize

Implementors§

Source§

impl PodOnce for ostd::arch::iommu::dma_remapping::second_stage::PageTableEntry

Source§

impl PodOnce for ostd::arch::mm::PageTableEntry