Trait bytemuck::PodInOption

source ·
pub unsafe trait PodInOption: ZeroableInOption + Copy + 'static { }
Expand description

Trait for types which are Pod when wrapped in Option.

Safety

  • Option<T> must uphold the same invariants as Pod.
  • Reminder: pointers are not pod! Do not mix this trait with a newtype over NonNull.

Implementations on Foreign Types§

source§

impl PodInOption for NonZeroU32

source§

impl PodInOption for NonZeroI8

source§

impl PodInOption for NonZeroU128

source§

impl PodInOption for NonZeroUsize

source§

impl PodInOption for NonZeroU8

source§

impl PodInOption for NonZeroU16

source§

impl PodInOption for NonZeroU64

source§

impl PodInOption for NonZeroI128

source§

impl PodInOption for NonZeroIsize

source§

impl PodInOption for NonZeroI32

source§

impl PodInOption for NonZeroI64

source§

impl PodInOption for NonZeroI16

Implementors§