Trait for types that can be safely created with
An all-zeroes value may or may not be the same value as the Default value of the type.
- Your type must be inhabited (eg: no Infallible).
- Your type must be allowed to be an “all zeroes” bit pattern (eg: no
impls are feature gated due to the MSRV policy:
MaybeUninit<T>was not available in 1.34.0, but is available under the
Atomic*types require Rust 1.60.0 or later to work on certain platforms, but is available under the
[T; N]for arbitrary