Lines Matching defs:UnsafeCell
174 //! cell::UnsafeCell,
199 //! foo: UnsafeCell<MaybeUninit<bindings::foo>>,
212 //! let foo = UnsafeCell::raw_get(foo).cast::<bindings::foo>();
275 cell::UnsafeCell,
1721 // SAFETY: `T: Zeroable` and `UnsafeCell` is `repr(transparent)`.
1722 {<T: ?Sized + Zeroable>} UnsafeCell<T>,
1820 /// This is useful when using wrapper `struct`s like [`UnsafeCell`] or with new-type `struct`s.
1825 /// # use core::cell::UnsafeCell;
1834 /// content: UnsafeCell<Foo>
1839 /// content <- UnsafeCell::pin_init(foo_initializer)
1847 impl<T> Wrapper<T> for UnsafeCell<T> {
1850 // SAFETY: `UnsafeCell<T>` has a compatible layout to `T`.