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.

Implementations on Foreign Types§

Source§

impl PodInOption for NonZero<i8>

Source§

impl PodInOption for NonZero<i16>

Source§

impl PodInOption for NonZero<i32>

Source§

impl PodInOption for NonZero<i64>

Source§

impl PodInOption for NonZero<i128>

Source§

impl PodInOption for NonZero<isize>

Source§

impl PodInOption for NonZero<u8>

Source§

impl PodInOption for NonZero<u16>

Source§

impl PodInOption for NonZero<u32>

Source§

impl PodInOption for NonZero<u64>

Source§

impl PodInOption for NonZero<u128>

Source§

impl PodInOption for NonZero<usize>

Implementors§