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.

Object Safety§

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 Box<T>

Available on crate feature extern_crate_alloc only.
source§

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

Implementors§