bytemuck

Trait ZeroableInOption

Source
pub unsafe trait ZeroableInOption: Sized { }
Expand description

Trait for types which are Zeroable when wrapped in Option.

§Safety

  • Option<YourType> must uphold the same invariants as Zeroable.

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 ZeroableInOption for NonZeroI8

Source§

impl ZeroableInOption for NonZeroI16

Source§

impl ZeroableInOption for NonZeroI32

Source§

impl ZeroableInOption for NonZeroI64

Source§

impl ZeroableInOption for NonZeroI128

Source§

impl ZeroableInOption for NonZeroIsize

Source§

impl ZeroableInOption for NonZeroU8

Source§

impl ZeroableInOption for NonZeroU16

Source§

impl ZeroableInOption for NonZeroU32

Source§

impl ZeroableInOption for NonZeroU64

Source§

impl ZeroableInOption for NonZeroU128

Source§

impl ZeroableInOption for NonZeroUsize

Source§

impl<T: ?Sized> ZeroableInOption for &T

Source§

impl<T: ?Sized> ZeroableInOption for &mut T

Source§

impl<T: ?Sized> ZeroableInOption for NonNull<T>

Implementors§