Trait bytemuck::pod_in_option::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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PodInOption for NonZeroI8

source§

impl PodInOption for NonZeroI16

source§

impl PodInOption for NonZeroI32

source§

impl PodInOption for NonZeroI64

source§

impl PodInOption for NonZeroI128

source§

impl PodInOption for NonZeroIsize

source§

impl PodInOption for NonZeroU8

source§

impl PodInOption for NonZeroU16

source§

impl PodInOption for NonZeroU32

source§

impl PodInOption for NonZeroU64

source§

impl PodInOption for NonZeroU128

source§

impl PodInOption for NonZeroUsize

Implementors§