Implement AnyBitPattern for MaybeUninit<T> where T: AnyBitPattern. (#160)

This commit is contained in:
zachs18 2023-01-11 01:24:05 -06:00 committed by GitHub
parent dbb776d443
commit 117222d3e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,3 +54,7 @@ pub unsafe trait AnyBitPattern:
}
unsafe impl<T: Pod> AnyBitPattern for T {}
#[cfg(feature = "zeroable_maybe_uninit")]
unsafe impl<T> AnyBitPattern for core::mem::MaybeUninit<T> where T: AnyBitPattern
{}