Skip to content

Commit

Permalink
Implement AnyBitPattern for MaybeUninit<T> where T: AnyBitPattern. (#160
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zachs18 authored Jan 11, 2023
1 parent dbb776d commit 117222d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/anybitpattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{}

0 comments on commit 117222d

Please sign in to comment.