Lines Matching full:box
14 /// A handle for a [`Box<HasHrTimer<T>>`] returned by a call to
19 /// - `self.inner` comes from a `Box::into_raw` call.
54 // SAFETY: By type invariant, `self.inner` came from a `Box::into_raw`
56 drop(unsafe { Box::<T, A>::from_raw(self.inner.as_ptr()) })
60 impl<T, A> HrTimerPointer for Pin<Box<T, A>>
65 T: for<'a> HrTimerCallback<Pointer<'a> = Pin<Box<T, A>>>,
76 // - We will not move out of this box during timer callback (we pass an
78 // - `Box::into_raw` is guaranteed to return a valid pointer.
80 unsafe { NonNull::new_unchecked(Box::into_raw(Pin::into_inner_unchecked(self))) };
88 // INVARIANT: `inner` came from `Box::into_raw` above.
96 impl<T, A> RawHrTimerCallback for Pin<Box<T, A>>
100 T: for<'a> HrTimerCallback<Pointer<'a> = Pin<Box<T, A>>>,
119 // - As `data_ptr` comes from a `Pin<Box<T>>`, only pinned references to