Lines Matching refs:Pin
166 use core::pin::Pin;
287 pub fn pin(x: T) -> Pin<Box<T>> { in pin()
572 pub fn pin_in(x: T, alloc: A) -> Pin<Self> in pin_in()
1205 pub const fn into_pin(boxed: Self) -> Pin<Self> in into_pin()
1212 unsafe { Pin::new_unchecked(boxed) } in into_pin()
1442 impl<T: ?Sized, A: Allocator> From<Box<T, A>> for Pin<Box<T, A>> implementation
2099 fn resume(mut self: Pin<&mut Self>, arg: R) -> GeneratorState<Self::Yield, Self::Return> { in resume()
2100 G::resume(Pin::new(&mut *self), arg) in resume()
2105 impl<G: ?Sized + Generator<R>, R, A: Allocator> Generator<R> for Pin<Box<G, A>> implementation
2112 fn resume(mut self: Pin<&mut Self>, arg: R) -> GeneratorState<Self::Yield, Self::Return> { in resume()
2124 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll()
2125 F::poll(Pin::new(&mut *self), cx) in poll()
2133 fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> { in poll_next()
2134 Pin::new(&mut **self).poll_next(cx) in poll_next()