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.

Implementations on Foreign Types§

source§

impl ZeroableInOption for NonZeroU64

source§

impl ZeroableInOption for NonZeroU128

source§

impl ZeroableInOption for NonZeroU32

source§

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

source§

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

source§

impl ZeroableInOption for NonZeroI128

source§

impl ZeroableInOption for NonZeroU16

source§

impl ZeroableInOption for NonZeroI64

source§

impl ZeroableInOption for NonZeroI8

source§

impl ZeroableInOption for NonZeroU8

source§

impl ZeroableInOption for NonZeroI32

source§

impl<T> ZeroableInOption for &Twhere T: ?Sized,

source§

impl ZeroableInOption for NonZeroUsize

source§

impl ZeroableInOption for NonZeroIsize

source§

impl ZeroableInOption for NonZeroI16

Implementors§