Lines Matching refs:from_raw
63 //! [`Box::<T>::from_raw(value)`]. Conversely, the memory backing a `value: *mut
143 //! [`Box::<T>::from_raw(value)`]: Box::from_raw
933 /// let x = unsafe { Box::from_raw(ptr) };
945 /// let x = Box::from_raw(ptr);
953 #[must_use = "call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`"]
954 pub unsafe fn from_raw(raw: *mut T) -> Self {
1023 /// [`Box::from_raw`] function, allowing the `Box` destructor to perform
1031 /// Converting the raw pointer back into a `Box` with [`Box::from_raw`]
1036 /// let x = unsafe { Box::from_raw(ptr) };
1149 /// with the [`Box::from_raw`] function producing a `Box`. This `Box` can
2173 Ok(Box::from_raw(raw as *mut T))
2190 Box::from_raw(Box::into_raw(s) as *mut (dyn Error + Send))
2204 Box::from_raw(Box::into_raw(s) as *mut (dyn Error + Send + Sync))