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 NonZeroU128

source§

impl ZeroableInOption for NonZeroU64

source§

impl ZeroableInOption for NonZeroU8

source§

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

source§

impl ZeroableInOption for NonZeroUsize

source§

impl ZeroableInOption for NonZeroI128

source§

impl ZeroableInOption for NonZeroU16

source§

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

source§

impl ZeroableInOption for NonZeroU32

source§

impl ZeroableInOption for NonZeroI8

source§

impl ZeroableInOption for NonZeroI32

source§

impl<T: ?Sized> ZeroableInOption for &T

source§

impl ZeroableInOption for NonZeroI16

source§

impl ZeroableInOption for NonZeroI64

source§

impl ZeroableInOption for NonZeroIsize

Implementors§