Lines Matching refs:UnsafeCell
13 cell::{Cell, UnsafeCell},
447 … unsafe impl<$($tyvar)?> TransmuteFrom<$atomic, Valid, Valid> for core::cell::UnsafeCell<$prim> {}
449 … unsafe impl<$($tyvar)?> TransmuteFrom<core::cell::UnsafeCell<$prim>, Valid, Valid> for $atomic {}
839 impl_for_transmute_from!(T: ?Sized + FromZeros => FromZeros for UnsafeCell<T>[T]);
840 impl_for_transmute_from!(T: ?Sized + FromBytes => FromBytes for UnsafeCell<T>[T]);
841 impl_for_transmute_from!(T: ?Sized + IntoBytes => IntoBytes for UnsafeCell<T>[T]);
849 const _: () = unsafe { unsafe_impl!(T: ?Sized + Unaligned => Unaligned for UnsafeCell<T>) };
850 assert_unaligned!(UnsafeCell<()>, UnsafeCell<u8>);
853 unsafe impl<T: TryFromBytes + ?Sized> TryFromBytes for UnsafeCell<T> { implementation
1493 Box<UnsafeCell<NotZerocopy>>, in test_impls()
1494 &'static UnsafeCell<NotZerocopy>, in test_impls()
1495 &'static mut UnsafeCell<NotZerocopy>, in test_impls()
1496 NonNull<UnsafeCell<NotZerocopy>>, in test_impls()
1546 ManuallyDrop<[UnsafeCell<u8>]> in test_impls()
1547 …=> @success bx!(ManuallyDrop::new([UnsafeCell::new(0)])), bx!(ManuallyDrop::new([UnsafeCell::new(0… in test_impls()
1548 ManuallyDrop<[UnsafeCell<bool>]> in test_impls()
1549 …> @success bx!(ManuallyDrop::new([UnsafeCell::new(false)])), bx!(ManuallyDrop::new([UnsafeCell::ne… in test_impls()
1699 ManuallyDrop<UnsafeCell<()>>, in test_impls()
1700 ManuallyDrop<[UnsafeCell<u8>]>, in test_impls()
1701 ManuallyDrop<[UnsafeCell<bool>]>, in test_impls()
1703 CoreMaybeUninit<UnsafeCell<()>>, in test_impls()
1704 Wrapping<UnsafeCell<()>> in test_impls()
1714 ManuallyDrop<[UnsafeCell<bool>]> in test_impls()
1724 Option<Box<UnsafeCell<NotZerocopy>>>, in test_impls()
1725 Option<&'static UnsafeCell<NotZerocopy>>, in test_impls()
1726 Option<&'static mut UnsafeCell<NotZerocopy>>, in test_impls()
1727 Option<NonNull<UnsafeCell<NotZerocopy>>>, in test_impls()
1745 ManuallyDrop<[UnsafeCell<bool>]>, in test_impls()
1756 Option<&'static UnsafeCell<NotZerocopy>>, in test_impls()
1757 Option<&'static mut UnsafeCell<NotZerocopy>>, in test_impls()
1758 Option<NonNull<UnsafeCell<NotZerocopy>>>, in test_impls()
1759 Option<Box<UnsafeCell<NotZerocopy>>>, in test_impls()
1766 CoreMaybeUninit<UnsafeCell<()>>, in test_impls()
1767 ManuallyDrop<UnsafeCell<()>>, in test_impls()
1768 ManuallyDrop<[UnsafeCell<u8>]>, in test_impls()
1769 ManuallyDrop<[UnsafeCell<bool>]>, in test_impls()
1770 Wrapping<UnsafeCell<()>>, in test_impls()
2221 …assert_impls!(Option<Box<UnsafeCell<NotZerocopy>>>: KnownLayout, Immutable, TryFromBytes, FromZero… in test_impls()
2222 …assert_impls!(Option<Box<[UnsafeCell<NotZerocopy>]>>: KnownLayout, !Immutable, !TryFromBytes, !Fro… in test_impls()
2223 …assert_impls!(Option<&'static UnsafeCell<NotZerocopy>>: KnownLayout, Immutable, TryFromBytes, From… in test_impls()
2224 …assert_impls!(Option<&'static [UnsafeCell<NotZerocopy>]>: KnownLayout, Immutable, !TryFromBytes, !… in test_impls()
2225 …assert_impls!(Option<&'static mut UnsafeCell<NotZerocopy>>: KnownLayout, Immutable, TryFromBytes, … in test_impls()
2226 …assert_impls!(Option<&'static mut [UnsafeCell<NotZerocopy>]>: KnownLayout, Immutable, !TryFromByte… in test_impls()
2227 …assert_impls!(Option<NonNull<UnsafeCell<NotZerocopy>>>: KnownLayout, TryFromBytes, FromZeros, Immu… in test_impls()
2228 …assert_impls!(Option<NonNull<[UnsafeCell<NotZerocopy>]>>: KnownLayout, Immutable, !TryFromBytes, !… in test_impls()
2235 …assert_impls!(PhantomData<UnsafeCell<()>>: KnownLayout, Immutable, TryFromBytes, FromZeros, FromBy… in test_impls()
2248 …assert_impls!(ManuallyDrop<UnsafeCell<()>>: KnownLayout, TryFromBytes, FromZeros, FromBytes, IntoB… in test_impls()
2249 …assert_impls!(ManuallyDrop<[UnsafeCell<u8>]>: KnownLayout, TryFromBytes, FromZeros, FromBytes, Int… in test_impls()
2250 …assert_impls!(ManuallyDrop<[UnsafeCell<bool>]>: KnownLayout, TryFromBytes, FromZeros, IntoBytes, U… in test_impls()
2254 …assert_impls!(CoreMaybeUninit<UnsafeCell<()>>: KnownLayout, TryFromBytes, FromZeros, FromBytes, Un… in test_impls()
2261 …assert_impls!(Wrapping<UnsafeCell<()>>: KnownLayout, TryFromBytes, FromZeros, FromBytes, IntoBytes… in test_impls()