Trait ZeroableInOption

pub unsafe trait ZeroableInOption: Sized { }
Available on crate feature dep_bytemuck only.
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§

§

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

§

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

Implementors§

§

impl ZeroableInOption for NonZero<i8>

§

impl ZeroableInOption for NonZero<i16>

§

impl ZeroableInOption for NonZero<i32>

§

impl ZeroableInOption for NonZero<i64>

§

impl ZeroableInOption for NonZero<i128>

§

impl ZeroableInOption for NonZero<isize>

§

impl ZeroableInOption for NonZero<u8>

§

impl ZeroableInOption for NonZero<u16>

§

impl ZeroableInOption for NonZero<u32>

§

impl ZeroableInOption for NonZero<u64>

§

impl ZeroableInOption for NonZero<u128>

§

impl ZeroableInOption for NonZero<usize>

§

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

§

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

Source§

impl<const V: i8> ZeroableInOption for devela::_info::examples::niche::NonValueI8<V>

Available on doc or test only.
Source§

impl<const V: i8> ZeroableInOption for devela::all::NonValueI8<V>

Source§

impl<const V: u8> ZeroableInOption for NonValueU8<V>

Source§

impl<const V: u16> ZeroableInOption for NonValueU16<V>