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§

Implementors§