Lines Matching refs:Pin
14 use core::pin::Pin;
287 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin()
340 ) -> Result<Pin<Box<[T], A>>, E> in pin_slice()
368 Ok(Pin::from(unsafe { Box::from_raw(slice) })) in pin_slice()
373 pub fn into_pin(this: Self) -> Pin<Self> { in into_pin()
417 impl<T, A> From<Box<T, A>> for Pin<Box<T, A>> implementation
429 unsafe { Pin::new_unchecked(b) } in from()
448 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> { in write_pin_init()
462 type PinnedSelf = Pin<Self>;
465 fn try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E> in try_pin_init()
522 unsafe impl<T: 'static, A> ForeignOwnable for Pin<Box<T, A>> implementation
527 type Borrowed<'a> = Pin<&'a T>;
528 type BorrowedMut<'a> = Pin<&'a mut T>;
532 Box::into_raw(unsafe { Pin::into_inner_unchecked(self) }).cast() in into_foreign()
538 unsafe { Pin::new_unchecked(Box::from_raw(ptr.cast())) } in from_foreign()
541 unsafe fn borrow<'a>(ptr: *mut c_void) -> Pin<&'a T> { in borrow()
549 unsafe { Pin::new_unchecked(r) } in borrow()
552 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> Pin<&'a mut T> { in borrow_mut()
561 unsafe { Pin::new_unchecked(r) } in borrow_mut()