mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-21 22:32:23 +00:00
Implement Zeroable
on {Cell,Reverse}<impl Zeroable>
(#149)
* Implement `Zeroable` on `Cell<impl Zeroable>` * Implement `Zeroable` on `Reverse<impl Zeroable>`
This commit is contained in:
parent
0da8f3a28f
commit
f14410f329
@ -41,6 +41,7 @@ unsafe impl Zeroable for i128 {}
|
||||
unsafe impl Zeroable for f32 {}
|
||||
unsafe impl Zeroable for f64 {}
|
||||
unsafe impl<T: Zeroable> Zeroable for Wrapping<T> {}
|
||||
unsafe impl<T: Zeroable> Zeroable for core::cmp::Reverse<T> {}
|
||||
|
||||
unsafe impl<T> Zeroable for *mut T {}
|
||||
unsafe impl<T> Zeroable for *const T {}
|
||||
@ -48,6 +49,7 @@ 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> {}
|
||||
unsafe impl<T: Zeroable> Zeroable for core::cell::Cell<T> {}
|
||||
|
||||
#[cfg(feature = "zeroable_maybe_uninit")]
|
||||
unsafe impl<T> Zeroable for core::mem::MaybeUninit<T> {}
|
||||
|
Loading…
Reference in New Issue
Block a user