diff --git a/src/anybitpattern.rs b/src/anybitpattern.rs index 3a55e62..702cb60 100644 --- a/src/anybitpattern.rs +++ b/src/anybitpattern.rs @@ -54,3 +54,9 @@ pub unsafe trait AnyBitPattern: } unsafe impl AnyBitPattern for T {} + +#[cfg(feature = "zeroable_maybe_uninit")] +unsafe impl AnyBitPattern for core::mem::MaybeUninit where + core::mem::MaybeUninit: Copy + 'static +{ +}