mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-22 06:42:25 +00:00
Implement Zeroable
on UnsafeCell<impl Zeroable>
(#148)
This commit is contained in:
parent
c9e1ae1373
commit
0da8f3a28f
@ -47,6 +47,7 @@ unsafe impl<T> Zeroable for *const T {}
|
||||
unsafe impl<T: Zeroable> Zeroable for PhantomData<T> {}
|
||||
unsafe impl Zeroable for PhantomPinned {}
|
||||
unsafe impl<T: Zeroable> Zeroable for ManuallyDrop<T> {}
|
||||
unsafe impl<T: Zeroable> Zeroable for core::cell::UnsafeCell<T> {}
|
||||
|
||||
#[cfg(feature = "zeroable_maybe_uninit")]
|
||||
unsafe impl<T> Zeroable for core::mem::MaybeUninit<T> {}
|
||||
|
Loading…
Reference in New Issue
Block a user