PodInOption

Trait 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.

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.

Implementors§