Lines Matching refs:into_raw
170 /// let ptr = KBox::into_raw(x);
171 /// // SAFETY: `ptr` comes from a previous call to `KBox::into_raw`.
178 pub fn into_raw(b: Self) -> *mut T {
184 /// See [`Box::into_raw`] for more details.
187 // SAFETY: `Box::into_raw` always returns a properly aligned and dereferenceable pointer
189 unsafe { &mut *Box::into_raw(b) }
206 let raw = Self::into_raw(self);
208 // SAFETY: `raw` comes from a previous call to `Box::into_raw`. By the safety requirements
354 let ptr = Self::into_raw(this);
356 // SAFETY: `ptr` is valid, because it came from `Box::into_raw`.
472 Box::into_raw(self).cast()
507 Box::into_raw(unsafe { Pin::into_inner_unchecked(self) }).cast()