Searched refs:into_raw (Results 1 – 14 of 14) sorted by relevance
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 pointer189 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 requirements354 let ptr = Self::into_raw(this); in pin_slice() 356 // SAFETY: `ptr` is valid, because it came from `Box::into_raw` in pin_slice() 203 pub fn into_raw(b: Self) -> *mut T { into_raw() function [all...]
969 let ptr = Box::into_raw(b);
43 pub const fn into_raw(self) -> usize { in into_raw() method132 self.pdev.cfg_size().into_raw() in maxsize()
66 unsafe { ARef::from_raw(ARef::into_raw(me).cast()) } in into_mmput_async()
136 pub fn into_raw(me: Self) -> NonNull<T> { in into_raw() method
347 /// The returned pointer is indistinguishable from pointers returned by [`Arc::into_raw`]. The350 pub fn into_raw(self) -> *const T { in into_raw() 351 Arc::into_raw(Self::transmute_to_arc(self)) in into_raw() 349 pub fn into_raw(self) -> *const T { into_raw() function
312 unsafe { ARef::from_raw(ARef::into_raw(me).cast()) } in assume_no_fdget_pos()
389 pub fn into_raw(self) -> bindings::kuid_t { in into_raw() method
368 let child_group_ptr = child_group.into_raw(); in make_group() 405 // SAFETY: We called `into_raw` to produce `r_child_group_ptr` in in drop_item() 410 arc.into_raw(); in drop_item() 453 // SAFETY: We called `into_raw` on `r_group_ptr` in in release()
367 let _ = KBox::into_raw(boxed); in new()
1319 let node = KBox::into_raw(node.node); in insert() 1326 // "forgot" it with `KBox::into_raw`. in insert() 1408 let node = KBox::into_raw(node.node); in replace()
510 let raw_item = ListArc::into_raw(item); in insert_inner()
130 let new = KBox::into_raw(unsafe { Pin::into_inner_unchecked(new) }); in new()
293 let ptr = KBox::into_raw(unsafe { Pin::into_inner_unchecked(obj) }); in new()