Lines Matching refs:Box
224 use alloc::boxed::Box;
226 unsafe impl<'a, T, F> UnsafeFutureObj<'a, T> for Box<F> implementation
230 Box::into_raw(self) in into_raw()
234 drop(Box::from_raw(ptr as *mut F)) in drop()
238 unsafe impl<'a, T: 'a> UnsafeFutureObj<'a, T> for Box<dyn Future<Output = T> + 'a> { implementation
240 Box::into_raw(self) in into_raw()
244 drop(Box::from_raw(ptr)) in drop()
248 unsafe impl<'a, T: 'a> UnsafeFutureObj<'a, T> for Box<dyn Future<Output = T> + Send + 'a> { implementation
250 Box::into_raw(self) in into_raw()
254 drop(Box::from_raw(ptr)) in drop()
258 unsafe impl<'a, T, F> UnsafeFutureObj<'a, T> for Pin<Box<F>>
269 drop(Pin::from(Box::from_raw(ptr))) in drop()
273 unsafe impl<'a, T: 'a> UnsafeFutureObj<'a, T> for Pin<Box<dyn Future<Output = T> + 'a>> {
281 drop(Pin::from(Box::from_raw(ptr))) in drop()
285 unsafe impl<'a, T: 'a> UnsafeFutureObj<'a, T> for Pin<Box<dyn Future<Output = T> + Send + 'a>> {
293 drop(Pin::from(Box::from_raw(ptr))) in drop()
297 impl<'a, F: Future<Output = ()> + Send + 'a> From<Box<F>> for FutureObj<'a, ()> {
298 fn from(boxed: Box<F>) -> Self { in from()
303 impl<'a> From<Box<dyn Future<Output = ()> + Send + 'a>> for FutureObj<'a, ()> {
304 fn from(boxed: Box<dyn Future<Output = ()> + Send + 'a>) -> Self { in from()
309 impl<'a, F: Future<Output = ()> + Send + 'a> From<Pin<Box<F>>> for FutureObj<'a, ()> {
310 fn from(boxed: Pin<Box<F>>) -> Self { in from()
315 impl<'a> From<Pin<Box<dyn Future<Output = ()> + Send + 'a>>> for FutureObj<'a, ()> {
316 fn from(boxed: Pin<Box<dyn Future<Output = ()> + Send + 'a>>) -> Self { in from()
321 impl<'a, F: Future<Output = ()> + 'a> From<Box<F>> for LocalFutureObj<'a, ()> {
322 fn from(boxed: Box<F>) -> Self { in from()
327 impl<'a> From<Box<dyn Future<Output = ()> + 'a>> for LocalFutureObj<'a, ()> {
328 fn from(boxed: Box<dyn Future<Output = ()> + 'a>) -> Self { in from()
333 impl<'a, F: Future<Output = ()> + 'a> From<Pin<Box<F>>> for LocalFutureObj<'a, ()> {
334 fn from(boxed: Pin<Box<F>>) -> Self { in from()
339 impl<'a> From<Pin<Box<dyn Future<Output = ()> + 'a>>> for LocalFutureObj<'a, ()> {
340 fn from(boxed: Pin<Box<dyn Future<Output = ()> + 'a>>) -> Self { in from()