devela::_dep::bytemuck

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§