pub unsafe trait ZeroPadding {
// Required method
unsafe fn zero_padding(ptr: *mut Self);
}
Expand description
Zeroes the padding of this type.
§Safety
zero_padding
must write zeroes to at least the padding bytes of the pointed-to memory.
Required Methods§
Sourceunsafe fn zero_padding(ptr: *mut Self)
unsafe fn zero_padding(ptr: *mut Self)
Writes zeroes to the padding for this type, if any.
§Safety
ptr
must point to memory suitable for holding this type.
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.