pub unsafe trait Zeroable { }
Expand description

Marker trait for types that can be initialized by writing just zeroes.

Safety

The bit pattern consisting of only zeroes is a valid bit pattern for this type. In other words, this is not UB:

let val: Self = unsafe { core::mem::zeroed() };

Implementations on Foreign Types

Implementors