mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-25 00:02:22 +00:00
Implement AnyBitPattern for MaybeUninit<T> where T: AnyBitPattern. (#160)
This commit is contained in:
parent
dbb776d443
commit
117222d3e4
@ -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
|
||||
{}
|
||||
|
Loading…
Reference in New Issue
Block a user