1 2 3 4 5 6 7 8 9 10 11
pub(crate) trait IntoInner<T> { /// Consumes the allocation, returning the value. fn consume(self) -> T; } impl<T> IntoInner<T> for Box<T> { #[inline] fn consume(self) -> T { *self } }