Lines Matching refs:NonNull
20 use core::{marker::PhantomData, mem::ManuallyDrop, ops::Deref, ptr::NonNull};
55 unsafe fn dec_ref(obj: NonNull<Self>);
69 ptr: NonNull<T>,
100 pub unsafe fn from_raw(ptr: NonNull<T>) -> Self {
117 /// use core::ptr::NonNull;
125 /// unsafe fn dec_ref(_obj: NonNull<Self>) {}
129 /// let ptr = NonNull::<Empty>::new(&mut data).unwrap();
132 /// let raw_ptr: NonNull<Empty> = ARef::into_raw(data_ref);
136 pub fn into_raw(me: Self) -> NonNull<T> {
162 unsafe { Self::from_raw(NonNull::from(b)) }